minor fix

This commit is contained in:
Carlos Aragones 2020-04-19 23:04:11 +02:00
parent 661092081c
commit 4175cec89e

View File

@ -422,7 +422,7 @@ mfb_update_events(struct mfb_window *window) {
SWindowData_Win *window_data_win = (SWindowData_Win *) window_data->specific; SWindowData_Win *window_data_win = (SWindowData_Win *) window_data->specific;
while (window_data->close == false && PeekMessage(&msg, window_data_win->window, 0, 0, PM_REMOVE)) { while (window_data->close == false && PeekMessage(&msg, window_data_win->window, 0, 0, PM_REMOVE)) {
if(msg.message == WM_PAINT) if(msg.message == WM_PAINT)
return; return STATE_OK;
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessage(&msg);