1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +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
committed by Mark Pizzolato
parent 057c0354f5
commit f566e104f6

View File

@@ -1814,10 +1814,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 ();