GDI: fix window not clearing on every frame, requires both FillRect calls and InvalidateRect
This commit is contained in:
parent
6c62901ae5
commit
69bac11f02
|
@ -521,20 +521,20 @@ LRESULT CALLBACK WndProcGDI(HWND hwnd, UINT message,
|
|||
|
||||
switch (message)
|
||||
{
|
||||
//case WM_PAINT:
|
||||
//{
|
||||
/*PAINTSTRUCT ps;
|
||||
case WM_PAINT:
|
||||
{
|
||||
PAINTSTRUCT ps;
|
||||
HDC hdc = BeginPaint(hwnd, &ps);
|
||||
|
||||
// All painting occurs here, between BeginPaint and EndPaint.
|
||||
|
||||
FillRect(hdc, &ps.rcPaint, (HBRUSH) (COLOR_WINDOW+1));
|
||||
FillRect(hdc, &ps.rcPaint, (HBRUSH)(COLOR_WINDOW + 1));
|
||||
|
||||
EndPaint(hwnd, &ps);*/
|
||||
EndPaint(hwnd, &ps);
|
||||
//return DefWindowProc(hwnd, message, wparam, lparam);
|
||||
//return 0;
|
||||
//break;
|
||||
//}
|
||||
break;
|
||||
}
|
||||
case WM_DROPFILES:
|
||||
case WM_SYSCOMMAND:
|
||||
case WM_CHAR:
|
||||
|
|
|
@ -337,7 +337,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
|||
if (msg)
|
||||
font_driver_render_msg(NULL, msg, NULL);
|
||||
|
||||
//InvalidateRect(hwnd, NULL, true);
|
||||
InvalidateRect(hwnd, NULL, true);
|
||||
|
||||
video_context_driver_update_window_title();
|
||||
|
||||
|
|
Loading…
Reference in New Issue