]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix for Win64, by Willis
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Jan 2006 09:10:39 +0000 (09:10 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Jan 2006 09:10:39 +0000 (09:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5917 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 1e6eed59be2b554f2f689d71e140ffc31e675e99..9f86830566634d44d0f5cb832a1ea5cb6c7682f0 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -346,7 +346,11 @@ static void VID_SetCaption()
                return;
 
        icon = LoadIcon( GetModuleHandle( NULL ), MAKEINTRESOURCE( IDI_ICON1 ) );
+#ifndef WIN64
        SetClassLong( info.window, GCL_HICON, (LONG) icon );
+#else
+       SetClassLongPtr( info.window, GCLP_HICON, (LONG_PTR)icon );
+#endif
 }
 #else
 static void VID_SetCaption()