netgen:: now works correctly with sdl2

This commit is contained in:
Zeno Rogue 2021-03-07 14:25:10 +01:00
parent 6fbccbeda0
commit ba9d72365c
1 changed files with 15 additions and 7 deletions

View File

@ -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() {