+
+void ChangeScreenModeIfNeeded()
+{
+ if (global.screen.width == WIN_XSIZE &&
+ global.screen.height == WIN_YSIZE)
+ return;
+
+ WIN_XSIZE = global.screen.width;
+ WIN_YSIZE = global.screen.height;
+
+ InitVideoBuffer(WIN_XSIZE, WIN_YSIZE, DEFAULT_DEPTH, setup.fullscreen);
+ InitGfxBuffers();
+
+#if 1
+ SetDrawDeactivationMask(REDRAW_NONE);
+ SetDrawBackgroundMask(REDRAW_FIELD);
+
+ // RedrawBackground();
+#endif
+}