diff --git a/src/main.c b/src/main.c index 68132c9..71e3c2d 100644 --- a/src/main.c +++ b/src/main.c @@ -1339,11 +1339,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) mouse_unlock(); real_SetWindowPos(ddraw->hWnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); real_SetWindowPos(ddraw->hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); - if (!ddraw->wine) - { - ShowWindow(ddraw->hWnd, SW_MINIMIZE); - ShowWindow(ddraw->hWnd, SW_RESTORE); - } mouse_lock(); return 0; } diff --git a/src/render_soft.c b/src/render_soft.c index cc08735..f36ef4b 100644 --- a/src/render_soft.c +++ b/src/render_soft.c @@ -29,6 +29,8 @@ DWORD WINAPI render_soft_main(void) char warningText[512] = { 0 }; if (ShowDriverWarning) { + ShowDriverWarning = FALSE; + if (!ddraw->windowed) PostMessage(ddraw->hWnd, WM_AUTORENDERER, 0, 0); @@ -37,8 +39,8 @@ DWORD WINAPI render_soft_main(void) "-WARNING- Using slow software rendering, please update your graphics card driver (%s)", strlen(OpenGL_Version) > 10 ? "" : OpenGL_Version); } - else - Sleep(500); + + Sleep(500); DWORD lastTick = 0; int maxFPS = ddraw->render.maxfps;