diff options
Diffstat (limited to 'src/win_cairo.c')
-rw-r--r-- | src/win_cairo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win_cairo.c b/src/win_cairo.c index ddc9554..75c61db 100644 --- a/src/win_cairo.c +++ b/src/win_cairo.c @@ -27,7 +27,7 @@ puglWinCairoCreateDrawContext(PuglView* view) surface->drawDc = CreateCompatibleDC(impl->hdc); surface->drawBitmap = CreateCompatibleBitmap( - impl->hdc, (int)view->frame.width, (int)view->frame.height); + impl->hdc, (int)view->lastConfigure.width, (int)view->lastConfigure.height); DeleteObject(SelectObject(surface->drawDc, surface->drawBitmap)); @@ -126,8 +126,8 @@ puglWinCairoLeave(PuglView* view, const PuglExposeEvent* expose) BitBlt(impl->hdc, 0, 0, - (int)view->frame.width, - (int)view->frame.height, + (int)view->lastConfigure.width, + (int)view->lastConfigure.height, surface->drawDc, 0, 0, |