diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2008-04-20 08:30:56 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2008-04-20 08:30:56 (GMT) |
commit | b4f20f70abd663b3d8e5889e1fe582dfe980b7a2 (patch) | |
tree | 1ef12f6f2f4d51d8e4486b2d467e6f047ef9515a /src/formula.cpp | |
parent | c6c19d2984bfd7265b6d5f82336c991ec35727da (diff) | |
download | Doxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.zip Doxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.tar.gz Doxygen-b4f20f70abd663b3d8e5889e1fe582dfe980b7a2.tar.bz2 |
Release-1.5.5-20080420
Diffstat (limited to 'src/formula.cpp')
-rw-r--r-- | src/formula.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/formula.cpp b/src/formula.cpp index 037ce9d..0599c5d 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -166,7 +166,10 @@ void FormulaList::generateBitmaps(const char *path) } // scale the image so that it is four times larger than needed. // and the sizes are a multiple of four. - const double scaleFactor = 16.0/3.0; + double scaleFactor = 16.0/3.0; + int zoomFactor = Config_getInt("FORMULA_FONTSIZE"); + if (zoomFactor<8 || zoomFactor>50) zoomFactor=10; + scaleFactor *= zoomFactor/10.0; int gx = (((int)((x2-x1)*scaleFactor))+3)&~2; int gy = (((int)((y2-y1)*scaleFactor))+3)&~2; // Then we run ghostscript to convert the postscript to a pixmap |