From: molivier Date: Sat, 21 Jan 2006 09:10:39 +0000 (+0000) Subject: Fix for Win64, by Willis X-Git-Tag: xonotic-v0.1.0preview~4379 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=938076b14d524fa61920c6538115c2829baa2693;p=xonotic%2Fdarkplaces.git Fix for Win64, by Willis git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5917 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index 1e6eed59..9f868305 100644 --- 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()