mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 12:14:39 +00:00
fixing undocumented part of win32 api
This commit is contained in:
parent
d903a6d470
commit
62c5dfb0a8
@ -36,13 +36,15 @@ LRESULT CALLBACK gf_draw_platform_proc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp
|
||||
EndPaint(hWnd, &ps);
|
||||
break;
|
||||
case WM_SIZE:
|
||||
GetClientRect(hWnd, &rect);
|
||||
draw->x = rect.left;
|
||||
draw->y = rect.top;
|
||||
draw->width = rect.right - rect.left;
|
||||
draw->height = rect.bottom - rect.top;
|
||||
wglMakeCurrent(draw->platform->dc, draw->platform->glrc);
|
||||
gf_draw_reshape(draw);
|
||||
if(draw->platform != NULL) {
|
||||
GetClientRect(hWnd, &rect);
|
||||
draw->x = rect.left;
|
||||
draw->y = rect.top;
|
||||
draw->width = rect.right - rect.left;
|
||||
draw->height = rect.bottom - rect.top;
|
||||
wglMakeCurrent(draw->platform->dc, draw->platform->glrc);
|
||||
gf_draw_reshape(draw);
|
||||
}
|
||||
break;
|
||||
case WM_CLOSE:
|
||||
draw->close = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user