Skip to content

Instantly share code, notes, and snippets.

@x42 x42/cairodebug
Created Oct 26, 2014

Embed
What would you like to do?
--- a/cairo-1.14.0/src/win32/cairo-win32-display-surface.c 2013-08-29 06:04:28.000000000 +0200
+++ b/cairo-1.14.0/src/win32/cairo-win32-display-surface.c 2014-10-25 12:57:06.773382276 +0200
@@ -450,33 +450,42 @@
if (surface->image)
goto done;
if (surface->fallback == NULL) {
surface->fallback =
_cairo_win32_display_surface_create_for_dc (surface->win32.dc,
surface->win32.format,
surface->win32.extents.width,
surface->win32.extents.height);
+
+#if 1 // XXX rg
+ fprintf(stderr, "NEW fallback surf %dx%d for surf=%d\n",
+ surface->win32.extents.width, surface->win32.extents.height,
+ surface->win32.base.unique_id
+ );
+#endif
if (unlikely (status = surface->fallback->status))
goto err;
+#if 0 // XXX rg
if (!BitBlt (to_win32_surface(surface->fallback)->dc,
0, 0,
surface->win32.extents.width,
surface->win32.extents.height,
surface->win32.dc,
0, 0,
SRCCOPY)) {
status = _cairo_error (CAIRO_STATUS_DEVICE_ERROR);
goto err;
}
+#endif
}
surface = to_win32_display_surface (surface->fallback);
done:
GdiFlush();
return _cairo_surface_map_to_image (surface->image, extents);
err:
cairo_surface_destroy (surface->fallback);
surface->fallback = NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.