diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-11 19:20:29 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2001-11-11 19:20:29 (GMT) |
commit | 621bb644049ff3957b4b69a02f3d42da89eefad0 (patch) | |
tree | 7d80c173dcecb625806ece76ccd2210dca925e13 /src/formula.cpp | |
parent | 7f95c8f5a256da0fafba27d5188d700e3c118dd1 (diff) | |
download | Doxygen-621bb644049ff3957b4b69a02f3d42da89eefad0.zip Doxygen-621bb644049ff3957b4b69a02f3d42da89eefad0.tar.gz Doxygen-621bb644049ff3957b4b69a02f3d42da89eefad0.tar.bz2 |
Release-1.2.11-20011111
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); |