Browse Source

window clear fix #21678213.

Mark Sibly 7 years ago
parent
commit
aedc755559
1 changed files with 1 additions and 2 deletions
  1. 1 2
      modules/sdl2/SDL/src/video/windows/SDL_windowsevents.c

+ 1 - 2
modules/sdl2/SDL/src/video/windows/SDL_windowsevents.c

@@ -1079,12 +1079,11 @@ SDL_RegisterApp(char *name, Uint32 style, void *hInst)
     wcex.lpszMenuName   = NULL;
     wcex.lpszMenuName   = NULL;
     wcex.lpszClassName  = SDL_Appname;
     wcex.lpszClassName  = SDL_Appname;
     wcex.style          = SDL_Appstyle;
     wcex.style          = SDL_Appstyle;
-    wcex.hbrBackground  = NULL;
+    wcex.hbrBackground  = GetStockObject( BLACK_BRUSH );
     wcex.lpfnWndProc    = WIN_WindowProc;
     wcex.lpfnWndProc    = WIN_WindowProc;
     wcex.hInstance      = SDL_Instance;
     wcex.hInstance      = SDL_Instance;
     wcex.cbClsExtra     = 0;
     wcex.cbClsExtra     = 0;
     wcex.cbWndExtra     = 0;
     wcex.cbWndExtra     = 0;
-    wcex.hbrBackground  = 2;
 
 
     /* Use the first icon as a default icon, like in the Explorer */
     /* Use the first icon as a default icon, like in the Explorer */
     GetModuleFileName(SDL_Instance, path, MAX_PATH);
     GetModuleFileName(SDL_Instance, path, MAX_PATH);