aboutsummaryrefslogtreecommitdiffstats
path: root/src/win_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win_gl.c')
-rw-r--r--src/win_gl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/win_gl.c b/src/win_gl.c
index 0ca9909..293dd9b 100644
--- a/src/win_gl.c
+++ b/src/win_gl.c
@@ -264,8 +264,7 @@ puglWinGlEnter(PuglView* view, const PuglExposeEvent* expose)
wglMakeCurrent(view->impl->hdc, surface->hglrc);
if (expose) {
- PAINTSTRUCT ps;
- BeginPaint(view->impl->hwnd, &ps);
+ BeginPaint(view->impl->hwnd, &view->impl->paint);
}
return PUGL_SUCCESS;
@@ -275,8 +274,7 @@ static PuglStatus
puglWinGlLeave(PuglView* view, const PuglExposeEvent* expose)
{
if (expose) {
- PAINTSTRUCT ps;
- EndPaint(view->impl->hwnd, &ps);
+ EndPaint(view->impl->hwnd, &view->impl->paint);
SwapBuffers(view->impl->hdc);
}