Created
October 26, 2014 12:30
-
-
Save x42/c875f8910c9186c013fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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