diff options
Diffstat (limited to 'src/formula.cpp')
-rw-r--r-- | src/formula.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/formula.cpp b/src/formula.cpp index f7c77b8..96d2137 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -85,7 +85,7 @@ void FormulaList::generateBitmaps(const char *path) for (fli.toFirst();(formula=fli.current());++fli) { QCString resultName; - resultName.sprintf("form-%d.gif",formula->getId()); + resultName.sprintf("form_%d.gif",formula->getId()); // only formulas for which no image exists are generated QFileInfo fi(resultName); if (!fi.exists()) @@ -116,7 +116,7 @@ void FormulaList::generateBitmaps(const char *path) for (;(pagePtr=pli.current());++pli,++pageIndex) { int pageNum=*pagePtr; - msg("Generating image form-%d.gif for formula\n",pageNum); + msg("Generating image form_%d.gif for formula\n",pageNum); char dviArgs[4096]; QCString formBase; formBase.sprintf("_form%d",pageNum); @@ -269,6 +269,7 @@ void FormulaList::generateBitmaps(const char *path) } // down-sample the image to 1/16th of the area using 16 gray scale // colors. + // TODO: optimize this code. for (y=0;y<dstImage.getHeight();y++) { for (x=0;x<dstImage.getWidth();x++) @@ -298,7 +299,7 @@ void FormulaList::generateBitmaps(const char *path) } // save the result as a gif QCString resultName; - resultName.sprintf("form-%d.gif",pageNum); + resultName.sprintf("form_%d.gif",pageNum); // the option parameter 1 is used here as a temporary hack // to select the right color palette! dstImage.save(resultName,1); |