Mercurial > MadButterfly
comparison include/mb_graph_engine_cairo.h @ 481:273307d061b7 Android_Skia
imported patch typo_cairo.diff
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 15 Nov 2009 16:21:09 +0800 |
parents | e813ac222f48 |
children | d186d1e24458 |
comparison
equal
deleted
inserted
replaced
480:e813ac222f48 | 481:273307d061b7 |
---|---|
99 | 99 |
100 static void mbe_clear(mbe_t *canvas) { | 100 static void mbe_clear(mbe_t *canvas) { |
101 cairo_operator_t old_op; | 101 cairo_operator_t old_op; |
102 | 102 |
103 old_op = cairo_get_operator(canvas); | 103 old_op = cairo_get_operator(canvas); |
104 cairo_set_operator(canvas, MBE_OPERATOR_CLEAR); | 104 cairo_set_operator(canvas, CAIRO_OPERATOR_CLEAR); |
105 cairo_paint(canvas); | 105 cairo_paint(canvas); |
106 cairo_set_operator(canvas, old_op); | 106 cairo_set_operator(canvas, old_op); |
107 } | 107 } |
108 | 108 |
109 static void mbe_copy_source(mbe_t *canvas) { | 109 static void mbe_copy_source(mbe_t *canvas) { |
110 cairo_operator_t saved_op; | 110 cairo_operator_t saved_op; |
111 | 111 |
112 saved_op = cairo_get_operator(canvas); | 112 saved_op = cairo_get_operator(canvas); |
113 cairo_set_operator(canvas, MBE_OPERATOR_SOURCE); | 113 cairo_set_operator(canvas, CAIRO_OPERATOR_SOURCE); |
114 cairo_paint(canvas); | 114 cairo_paint(canvas); |
115 cairo_set_operator(canvas, saved_op); | 115 cairo_set_operator(canvas, saved_op); |
116 } | 116 } |
117 | 117 |
118 static mbe_scaled_font_t * | 118 static mbe_scaled_font_t * |