Commit 95425a11 authored by Sam Lantinga's avatar Sam Lantinga

SetClassLongPtr isn't available in MinGW yet

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401461
parent a9ee23bb
...@@ -220,6 +220,9 @@ void WIN_SetWMIcon(_THIS, SDL_Surface *icon, Uint8 *mask) ...@@ -220,6 +220,9 @@ void WIN_SetWMIcon(_THIS, SDL_Surface *icon, Uint8 *mask)
if ( screen_icn == NULL ) { if ( screen_icn == NULL ) {
SDL_SetError("Couldn't create Win32 icon handle"); SDL_SetError("Couldn't create Win32 icon handle");
} else { } else {
#ifndef SetClassLongPtr
#define SetClassLongPtr SetClassLong
#endif
SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn); SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn);
} }
SDL_stack_free(icon_win32); SDL_stack_free(icon_win32);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment