File diff r17388:4c1f53028687 → r17389:80d374d6031a
src/video/win32_v.cpp
Show inline comments
 
@@ -376,13 +376,13 @@ static LRESULT CALLBACK WndProcGdi(HWND 
 
			HDC hDC = GetWindowDC(hwnd);
 
			HPALETTE hOldPalette = SelectPalette(hDC, _wnd.gdi_palette, FALSE);
 
			UINT nChanged = RealizePalette(hDC);
 

	
 
			SelectPalette(hDC, hOldPalette, TRUE);
 
			ReleaseDC(hwnd, hDC);
 
			if (nChanged) InvalidateRect(hwnd, NULL, FALSE);
 
			if (nChanged != 0) InvalidateRect(hwnd, NULL, FALSE);
 
			return 0;
 
		}
 

	
 
		case WM_CLOSE:
 
			HandleExitGameRequest();
 
			return 0;