Skip to content

Commit

Permalink
Yet more Win64 tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 7, 2006
1 parent 4f64bdc commit f7f7b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/video/wincommon/SDL_lowvideo.h
Expand Up @@ -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"

Expand Down Expand Up @@ -118,7 +121,7 @@ extern void DX5_SoundFocus(HWND window);

/* 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);
Expand Down
2 changes: 1 addition & 1 deletion src/video/wincommon/SDL_syswm.c
Expand Up @@ -220,7 +220,7 @@ void WIN_SetWMIcon(_THIS, SDL_Surface *icon, Uint8 *mask)
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 */
Expand Down

0 comments on commit f7f7b84

Please sign in to comment.