mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 22:50:14 +01:00
Merge branch 'win32-get-dc' into 'master'
cairo_win32_surface_get_dc: Return NULL for error surfaces Closes #405 See merge request cairo/cairo!106
This commit is contained in:
commit
d49d855819
1 changed files with 3 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ _cairo_win32_surface_get_extents (void *abstract_surface,
|
|||
HDC
|
||||
cairo_win32_surface_get_dc (cairo_surface_t *surface)
|
||||
{
|
||||
if (surface->backend == NULL)
|
||||
return NULL;
|
||||
|
||||
if (surface->backend->type == CAIRO_SURFACE_TYPE_WIN32)
|
||||
return to_win32_surface(surface)->dc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue