HDC fix for Windows

This commit is contained in:
Robin Dunn
2016-07-19 17:52:25 -07:00
parent 7ed47817ba
commit f7d252f1be

View File

@@ -56,7 +56,7 @@ def _ContextFromDC(dc):
elif 'wxMSW' in wx.PlatformInfo:
# Similarly, get the HDC and create a surface from it
hdc = dc.GetHandle()
hdc = voidp(dc.GetHandle())
surfaceptr = cairo_c.cairo_win32_surface_create(hdc)
surface = cairocffi.Surface._from_pointer(surfaceptr, False)