summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-11 19:20:29 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-11-11 19:20:29 (GMT)
commit613b33d7ce00236865f41d77e4e39b37dcbef17b (patch)
tree7d80c173dcecb625806ece76ccd2210dca925e13 /src/formula.cpp
parenta29cfb7d102b893c56c1342fc738b788fc4885cf (diff)
downloadDoxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.zip
Doxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.tar.gz
Doxygen-613b33d7ce00236865f41d77e4e39b37dcbef17b.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);