Ticket #42: xmlroff-placeimage-cairo.diff
| File xmlroff-placeimage-cairo.diff, 1.2 kB (added by lleroy, 8 months ago) |
|---|
-
a/libfo/fo-doc-cairo.c
old new 1026 1026 static const cairo_user_data_key_t key; 1027 1027 int j; 1028 1028 1029 /*cairo_translate (FO_DOC_CAIRO (fo_doc)->cr, 0, height * yscale * 72.0 / PIXELS_PER_INCH);*/1029 cairo_translate (FO_DOC_CAIRO (fo_doc)->cr, 0, FO_DOC_CAIRO(fo_doc)->page_height); 1030 1030 cairo_save (FO_DOC_CAIRO(fo_doc)->cr); 1031 /*1032 1031 cairo_scale (FO_DOC_CAIRO (fo_doc)->cr, 1033 1032 xscale * 72.0 / PIXELS_PER_INCH, 1034 1033 yscale * 72.0 / PIXELS_PER_INCH); 1035 */1036 1034 if (n_channels == 3) 1037 1035 { 1038 1036 format = CAIRO_FORMAT_RGB24; … … 1150 1148 1151 1149 cairo_translate (cr, 1152 1150 x / PANGO_SCALE, 1153 y / PANGO_SCALE);1151 -y / PANGO_SCALE); 1154 1152 1155 1153 g_closure_invoke (((GClosure *) libfo_pango_attr_callback_get_callback(attr)), 1156 1154 NULL, … … 1350 1348 1351 1349 cairo_move_to (FO_DOC_CAIRO (fo_doc)->cr, 1352 1350 x, 1353 y);1351 FO_DOC_CAIRO (fo_doc)->page_height - y); 1354 1352 pango_cairo_show_layout (FO_DOC_CAIRO (fo_doc)->cr, 1355 1353 fo_layout_get_pango_layout (fo_area_layout_get_layout (area_layout))); 1356 1354
