summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-11-11 19:20:29 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-11-11 19:20:29 (GMT)
commit621bb644049ff3957b4b69a02f3d42da89eefad0 (patch)
tree7d80c173dcecb625806ece76ccd2210dca925e13 /src/formula.cpp
parent7f95c8f5a256da0fafba27d5188d700e3c118dd1 (diff)
downloadDoxygen-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.cpp7
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);