From a041029464f1668402a7c9339e100089457f98e3 Mon Sep 17 00:00:00 2001
From: coderjoe <coderjoe@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Mon, 2 Feb 2004 15:02:19 +0000
Subject: [PATCH] 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
---
 vid_wgl.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

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
-- 
2.39.5