# HG changeset patch # User Sam Lantinga # Date 1141747379 0 # Node ID deb22b9fe97049b4e69d7d8b5ab9e6cd11e076cf # Parent 0a2bd6507477060c020cb721f9342b59f0705efd Yet more Win64 tweaks diff -r 0a2bd6507477 -r deb22b9fe970 src/video/wincommon/SDL_lowvideo.h --- a/src/video/wincommon/SDL_lowvideo.h Tue Mar 07 05:21:32 2006 +0000 +++ b/src/video/wincommon/SDL_lowvideo.h Tue Mar 07 16:02:59 2006 +0000 @@ -39,6 +39,9 @@ #ifndef GWLP_WNDPROC #define GWLP_WNDPROC GWL_WNDPROC #endif +#ifndef GCLP_HICON +#define GCLP_HICON GCL_HICON +#endif #include "../SDL_sysvideo.h" @@ -118,7 +121,7 @@ /* DJM: This is really from SDL_sysevents.c, we need it in GDL_CreateWindow as well */ -LONG CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); +LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); /* JFP: Implementation of ToUnicode() that works on 9x/ME/2K/XP */ typedef int (WINAPI *ToUnicodeFN)(UINT, UINT, PBYTE, LPWSTR, int, UINT); diff -r 0a2bd6507477 -r deb22b9fe970 src/video/wincommon/SDL_syswm.c --- a/src/video/wincommon/SDL_syswm.c Tue Mar 07 05:21:32 2006 +0000 +++ b/src/video/wincommon/SDL_syswm.c Tue Mar 07 16:02:59 2006 +0000 @@ -220,7 +220,7 @@ if ( screen_icn == NULL ) { SDL_SetError("Couldn't create Win32 icon handle"); } else { - SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn); + SetClassLongPtr(SDL_Window, GCLP_HICON, (LONG_PTR)screen_icn); } SDL_stack_free(icon_win32); #endif /* DISABLE_ICON_SUPPORT */