Author: dsilvers
Date: Wed Nov 23 16:49:13 2011
New Revision: 13177
URL:
http://source.netsurf-browser.org?rev=13177&view=rev
Log:
Move the flush to the bitmap_get_buffer call where it belongs
Modified:
branches/vince/netsurf-cairo/gtk/bitmap.c
Modified: branches/vince/netsurf-cairo/gtk/bitmap.c
URL:
http://source.netsurf-browser.org/branches/vince/netsurf-cairo/gtk/bitmap...
==============================================================================
--- branches/vince/netsurf-cairo/gtk/bitmap.c (original)
+++ branches/vince/netsurf-cairo/gtk/bitmap.c Wed Nov 23 16:49:13 2011
@@ -125,6 +125,9 @@
{
struct bitmap *bitmap = (struct bitmap *)vbitmap;
assert(bitmap);
+
+ cairo_surface_flush (bitmap->surface);
+
return cairo_image_surface_get_data(bitmap->surface);
}
@@ -205,8 +208,6 @@
uint32_t *pixels = (uint32_t *)cairo_image_surface_get_data(bitmap->surface);
uint32_t pixel;
- cairo_surface_flush (bitmap->surface);
-
for (pixel_loop=0; pixel_loop < pixel_count; pixel_loop++) {
pixel = pixels[pixel_loop];
pixels[pixel_loop] = (pixel & 0xff00ff00) |