]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't need to send WM_SETICON... just set the icon in the window class and
authorcoderjoe <coderjoe@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Feb 2004 15:02:19 +0000 (15:02 +0000)
committercoderjoe <coderjoe@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 2 Feb 2004 15:02:19 +0000 (15:02 +0000)
windows will take care of it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3865 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index 47bde254f5188d72f238131ebae826ef78db22c4..30a08e84e0d4dda965490b3ec2af1e0aed558f73 100644 (file)
--- 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