From: coderjoe Date: Mon, 2 Feb 2004 15:02:19 +0000 (+0000) Subject: don't need to send WM_SETICON... just set the icon in the window class and X-Git-Tag: xonotic-v0.1.0preview~6123 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a041029464f1668402a7c9339e100089457f98e3;p=xonotic%2Fdarkplaces.git don't need to send WM_SETICON... just set the icon in the window class and windows will take care of it. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3865 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 47bde254..30a08e84 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -720,7 +720,7 @@ void VID_Init(void) wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = global_hInstance; - wc.hIcon = 0; + wc.hIcon = hIcon; wc.hCursor = LoadCursor (NULL,IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = 0; @@ -880,10 +880,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp) ShowWindow (mainwindow, SW_SHOWDEFAULT); UpdateWindow (mainwindow); - SendMessage (mainwindow, WM_SETICON, (WPARAM)true, (LPARAM)hIcon); - SendMessage (mainwindow, WM_SETICON, (WPARAM)false, (LPARAM)hIcon); - - VID_UpdateWindowStatus (); + VID_UpdateWindowStatus (); // now we try to make sure we get the focus on the mode switch, because // sometimes in some systems we don't. We grab the foreground, then