mirror of
https://github.com/simh/simh.git
synced 2026-02-11 18:46:08 +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:
committed by
Mark Pizzolato
parent
057c0354f5
commit
f566e104f6
@@ -1814,10 +1814,12 @@ if (!vptr->vid_texture) {
|
|||||||
|
|
||||||
vptr->vid_format = SDL_AllocFormat (SDL_PIXELFORMAT_ARGB8888);
|
vptr->vid_format = SDL_AllocFormat (SDL_PIXELFORMAT_ARGB8888);
|
||||||
|
|
||||||
|
#ifdef SDL_WINDOW_RESIZABLE
|
||||||
if (vptr->vid_flags & SIM_VID_RESIZABLE) {
|
if (vptr->vid_flags & SIM_VID_RESIZABLE) {
|
||||||
SDL_SetWindowResizable(vptr->vid_window, SDL_TRUE);
|
SDL_SetWindowResizable(vptr->vid_window, SDL_TRUE);
|
||||||
SDL_RenderSetIntegerScale(vptr->vid_renderer, SDL_TRUE);
|
SDL_RenderSetIntegerScale(vptr->vid_renderer, SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SDL_StopTextInput ();
|
SDL_StopTextInput ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user