mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 07:30:26 +00:00
netgen:: now works correctly with sdl2
This commit is contained in:
parent
6fbccbeda0
commit
ba9d72365c
22
netgen.cpp
22
netgen.cpp
@ -647,13 +647,21 @@ EX namespace netgen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void designNet() {
|
void designNet() {
|
||||||
#if !CAP_SDL2
|
if(1) {
|
||||||
// fstx
|
dynamicval<int> dwx(vid.window_x, SX);
|
||||||
s = SDL_SetVideoMode(SX, SY, 32, 0);
|
dynamicval<int> dwy(vid.window_y, SY);
|
||||||
#endif
|
dynamicval<int> dfx(vid.fullscreen_x, SX);
|
||||||
netgen_loop();
|
dynamicval<int> dfy(vid.fullscreen_y, SY);
|
||||||
saveData();
|
dynamicval<bool> dr(resizable, false);
|
||||||
setvideomode();
|
dynamicval<bool> dws(vid.relative_window_size, false);
|
||||||
|
dynamicval<bool> dfs(vid.change_fullscr, true);
|
||||||
|
apply_screen_settings();
|
||||||
|
|
||||||
|
netgen_loop();
|
||||||
|
saveData();
|
||||||
|
setvideomode();
|
||||||
|
}
|
||||||
|
apply_screen_settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void show() {
|
void show() {
|
||||||
|
Loading…
Reference in New Issue
Block a user