1
0
mirror of https://github.com/open-simh/simh.git synced 2026-03-03 02:08:35 +00:00

VIDEO: Check whether SDL_WINDOW_RESIZABLE is present.

SDL versions older than 2.0.5 doesn't have this symbol or the
SDL_SetWindowResizable function.
This commit is contained in:
Lars Brinkhoff
2023-04-30 14:10:11 +02:00
parent 021413a2d7
commit 783ee136d7

View File

@@ -1812,10 +1812,12 @@ if (!vptr->vid_texture) {
vptr->vid_format = SDL_AllocFormat (SDL_PIXELFORMAT_ARGB8888);
#ifdef SDL_WINDOW_RESIZABLE
if (vptr->vid_flags & SIM_VID_RESIZABLE) {
SDL_SetWindowResizable(vptr->vid_window, SDL_TRUE);
SDL_RenderSetIntegerScale(vptr->vid_renderer, SDL_TRUE);
}
#endif
SDL_StopTextInput ();