mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 16:30:32 +01:00
[win32] check correct surface for BitBlt support in get_subimage
This commit is contained in:
parent
9aad6efd2b
commit
f4a8633fce
1 changed files with 4 additions and 1 deletions
|
|
@ -476,7 +476,10 @@ _cairo_win32_surface_get_subimage (cairo_win32_surface_t *surface,
|
|||
|
||||
status = CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
if ((local->flags & CAIRO_WIN32_SURFACE_CAN_BITBLT) &&
|
||||
/* We are blitting -from- surface, so we need to check if it
|
||||
* supports BitBlt. I believe any surface can be used as a
|
||||
* BitBlt destination. */
|
||||
if ((surface->flags & CAIRO_WIN32_SURFACE_CAN_BITBLT) &&
|
||||
BitBlt (local->dc,
|
||||
0, 0,
|
||||
width, height,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue