comparison src/X_main.c @ 450:a417fd980228

Replace cairo_format_t with mb_img_fmt_t. - Replace all CAIRO_FORAMT_* with MB_IFMT_* - wrap functions return or are argumented with image format.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 05 Aug 2009 15:54:44 +0800
parents 16116d84bc5e
children 5c9e2a8a4bd8
comparison
equal deleted inserted replaced
449:c525edac917e 450:a417fd980228
139 mb_progm_t *progm; 139 mb_progm_t *progm;
140 mb_word_t *word; 140 mb_word_t *word;
141 mb_action_t *act; 141 mb_action_t *act;
142 PangoAttrList *attrs = pango_attr_list_new(); 142 PangoAttrList *attrs = pango_attr_list_new();
143 143
144 tmpsuf = mbe_image_surface_create(CAIRO_FORMAT_ARGB32, w, h); 144 tmpsuf = mbe_image_surface_create(MB_IFMT_ARGB32, w, h);
145 tmpcr = mbe_create(tmpsuf); 145 tmpcr = mbe_create(tmpsuf);
146 146
147 mbe_set_source_surface(cr, tmpsuf, 0, 0); 147 mbe_set_source_surface(cr, tmpsuf, 0, 0);
148 redraw_man_init(&rdman, tmpcr, cr); 148 redraw_man_init(&rdman, tmpcr, cr);
149 coord1 = rdman_coord_new(&rdman, rdman.root_coord); 149 coord1 = rdman_coord_new(&rdman, rdman.root_coord);