mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 22:44:32 +00:00
Hopefully fix build against SDL 1.2. Does not yet run!
Also: Recently introduced key names in usersettings.xml will no longer work. But this should automatically detect key names as they used to be, and convert automatically. Needs testing.
This commit is contained in:
parent
4095fde219
commit
3dda97d32a
14 changed files with 461 additions and 51 deletions
|
@ -66,11 +66,12 @@ void initIcon(void *screen)
|
|||
|
||||
#ifdef BBGE_BUILD_SDL2
|
||||
SDL_GetWindowWMInfo((SDL_Window*)screen, &wminfo);
|
||||
HWND hwnd = wminfo.info.win.window;
|
||||
#else
|
||||
SDL_GetWindowWMInfo((SDL_Surface*)screen, &wminfo);
|
||||
SDL_GetWMInfo(&wminfo);
|
||||
HWND hwnd = wminfo.window;
|
||||
#endif
|
||||
|
||||
HWND hwnd = wminfo.info.win.window;
|
||||
::SetClassLongPtr(hwnd, -14, (LONG) icon_windows); // -14 is GCL_HICON (32bit) or GCLP_HICON (64bit)
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue