mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixup to get_requested_resolution on mobile
This commit is contained in:
parent
e7a1ce6a1a
commit
31666007f3
@ -1153,6 +1153,9 @@ EX void apply_screen_settings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX pair<int, int> get_requested_resolution() {
|
EX pair<int, int> get_requested_resolution() {
|
||||||
|
#if ISMOBILE || ISFAKEMOBILE
|
||||||
|
return { vid.xres, vid.yres };
|
||||||
|
#endif
|
||||||
if(vid.want_fullscreen && vid.change_fullscr)
|
if(vid.want_fullscreen && vid.change_fullscr)
|
||||||
return { vid.fullscreen_x, vid.fullscreen_y };
|
return { vid.fullscreen_x, vid.fullscreen_y };
|
||||||
else if(vid.want_fullscreen)
|
else if(vid.want_fullscreen)
|
||||||
|
Loading…
Reference in New Issue
Block a user