diff src/redraw_man.c @ 435:2bdd4f5dd2ca

Make sh_text and sh_stext optional. Since sh_text depends on pango, and we want a version of MadButterfly without Pango (lite version), we make sh_text and sh_stext optional. User can choice which one to enable.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 29 Jul 2009 20:22:36 +0800
parents bec538d361e9
children 94477e7d981e
line wrap: on
line diff
--- a/src/redraw_man.c	Wed Jul 29 16:35:13 2009 +0800
+++ b/src/redraw_man.c	Wed Jul 29 20:22:36 2009 +0800
@@ -9,6 +9,7 @@
 #include "mb_redraw_man.h"
 #include "mb_observer.h"
 #include "mb_prop.h"
+#include "../config.h"
 
 /* required by rdman_img_ldr_load_paint() */
 #include "mb_paint.h"
@@ -1163,18 +1164,22 @@
     case MBO_PATH:
 	sh_path_transform(shape);
 	break;
+#ifdef SH_TEXT
     case MBO_TEXT:
 	sh_text_transform(shape);
 	break;
+#endif
     case MBO_RECT:
 	sh_rect_transform(shape);
 	break;
     case MBO_IMAGE:
 	sh_image_transform(shape);
 	break;
+#ifdef SH_STEXT
     case MBO_STEXT:
 	sh_stext_transform(shape);
 	break;
+#endif
 #ifdef UNITTEST
     default:
 	sh_dummy_transform(shape);
@@ -1817,18 +1822,22 @@
 	case MBO_PATH:
 	    sh_path_draw(shape, cr);
 	    break;
+#ifdef SH_TEXT
 	case MBO_TEXT:
 	    sh_text_draw(shape, cr);
 	    break;
+#endif
 	case MBO_RECT:
 	    sh_rect_draw(shape, cr);
 	    break;
 	case MBO_IMAGE:
 	    sh_image_draw(shape, cr);
 	    break;
+#ifdef SH_STEXT
 	case MBO_STEXT:
 	    sh_stext_draw(shape, cr);
 	    break;
+#endif
 #ifdef UNITTEST
 	default:
 	    sh_dummy_fill(shape, cr);