mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
window can be set to non-resizable (useful for netgen)
This commit is contained in:
parent
69f16c45b1
commit
23f9d58307
@ -1174,6 +1174,9 @@ EX pair<int, int> get_requested_resolution() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
|
|
||||||
|
EX bool resizable = true;
|
||||||
|
|
||||||
EX void setvideomode() {
|
EX void setvideomode() {
|
||||||
|
|
||||||
DEBBI(DF_INIT | DF_GRAPH, ("setvideomode"));
|
DEBBI(DF_INIT | DF_GRAPH, ("setvideomode"));
|
||||||
@ -1211,7 +1214,7 @@ EX void setvideomode() {
|
|||||||
vid.usingGL = false;
|
vid.usingGL = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int sizeflag = SDL12(vid.full ? SDL_FULLSCREEN : SDL_RESIZABLE, vid.full ? SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE);
|
int sizeflag = SDL12(vid.full ? SDL_FULLSCREEN : resizable ? SDL_RESIZABLE : 0, vid.full ? SDL_WINDOW_FULLSCREEN : resizable ? SDL_WINDOW_RESIZABLE : 0);
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
#ifndef OLD_MINGW
|
#ifndef OLD_MINGW
|
||||||
|
Loading…
Reference in New Issue
Block a user