diff include/mb_graph_engine_cairo.h @ 633:6f71f1b8e4e7

Let compilation on SMP8655 succeeded.
author Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
date Sat, 24 Jul 2010 16:13:06 +0800
parents d186d1e24458
children 058945dff7bd
line wrap: on
line diff
--- a/include/mb_graph_engine_cairo.h	Sun Jul 11 18:36:12 2010 +0800
+++ b/include/mb_graph_engine_cairo.h	Sat Jul 24 16:13:06 2010 +0800
@@ -3,7 +3,7 @@
 
 #include <stdio.h>
 #include <cairo.h>
-#include <cairo-xlib.h>
+#include <cairo-directfb.h>
 #include "mb_basic_types.h"
 #include "mb_img_ldr.h"
 
@@ -99,7 +99,7 @@
 
 static void mbe_clear(mbe_t *canvas) {
     cairo_operator_t old_op;
-    
+
     old_op = cairo_get_operator(canvas);
     cairo_set_operator(canvas, CAIRO_OPERATOR_CLEAR);
     cairo_paint(canvas);
@@ -110,7 +110,7 @@
     cairo_operator_t saved_op;
     cairo_surface_t *surf;
     cairo_pattern_t *ptn;
-    
+
     surf = cairo_get_target(src);
     ptn = cairo_pattern_create_for_surface(surf);
     cairo_set_source(src, ptn);
@@ -131,13 +131,13 @@
     options = cairo_font_options_create();
     if(options == NULL)
 	return NULL;
-    
+
     MB_MATRIX_2_CAIRO(cfnt_mtx, fnt_mtx);
     MB_MATRIX_2_CAIRO(cctm, ctm);
     scaled = cairo_scaled_font_create(face, &cfnt_mtx, &cctm, options);
 
     cairo_font_options_destroy(options);
-    
+
     return scaled;
 }
 
@@ -147,7 +147,7 @@
 				  int width, int height,
 				  int stride) {
     cairo_format_t _fmt;
-    
+
     switch(fmt) {
     case MB_IFMT_ARGB32:
 	_fmt = CAIRO_FORMAT_ARGB32;
@@ -198,7 +198,7 @@
 static mbe_surface_t *
 mbe_image_surface_create(mb_img_fmt_t fmt, int width, int height) {
     cairo_format_t _fmt;
-    
+
     switch(fmt) {
     case MB_IFMT_ARGB32:
 	_fmt = CAIRO_FORMAT_ARGB32;
@@ -215,7 +215,7 @@
     default:
 	return NULL;
     }
-    
+
     return cairo_image_surface_create(_fmt, width, height);
 }