summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-04-20 08:30:56 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-04-20 08:30:56 (GMT)
commit2f0a01b60fb0cb5f2fb42510039c22eabd86e786 (patch)
tree1ef12f6f2f4d51d8e4486b2d467e6f047ef9515a /src/formula.cpp
parent238c63a16c820818ba71ae256f3f50eed2a94cf2 (diff)
downloadDoxygen-2f0a01b60fb0cb5f2fb42510039c22eabd86e786.zip
Doxygen-2f0a01b60fb0cb5f2fb42510039c22eabd86e786.tar.gz
Doxygen-2f0a01b60fb0cb5f2fb42510039c22eabd86e786.tar.bz2
Release-1.5.5-20080420
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp5
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