diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 8e609e3463..655f2c40d3 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -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: diff --git a/gfx/drivers/gdi_gfx.c b/gfx/drivers/gdi_gfx.c index ef59184017..aa783fad3a 100644 --- a/gfx/drivers/gdi_gfx.c +++ b/gfx/drivers/gdi_gfx.c @@ -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();