summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-08-22 20:21:25 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-08-22 20:21:25 +0200
commit5cef261f100aaa63f6ee13a26509dec5f1e6ad08 (patch)
tree00d1ac3ae4ab608bd6eda94edbdf3c915716a4bd
parenta3bf979c21fcb36938798818a793d76e52e37f93 (diff)
downloadgmathlib-5cef261f100aaa63f6ee13a26509dec5f1e6ad08.tar.gz
gmathlib-5cef261f100aaa63f6ee13a26509dec5f1e6ad08.tar.bz2
* Improve frac symbol rendering
-rw-r--r--gmathcairo/gmathcairo_renderers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gmathcairo/gmathcairo_renderers.c b/gmathcairo/gmathcairo_renderers.c
index 9c262f6..46a21b8 100644
--- a/gmathcairo/gmathcairo_renderers.c
+++ b/gmathcairo/gmathcairo_renderers.c
@@ -262,6 +262,12 @@ render_frac (GMathCairoContext *ccontext, GMathSymbol *symbol, float size)
height += dh1;
}
+ if (!width)
+ {
+ width = width0 = 4 * size / 5;
+ height = width0 / 0.8;
+ }
+
gmathboxed_resize (boxed, width, height);
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);