summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/table/win32_settings.ini19
-rw-r--r--src/video/win32_v.cpp8
2 files changed, 2 insertions, 25 deletions
diff --git a/src/table/win32_settings.ini b/src/table/win32_settings.ini
index cfa186804..406e8dd8f 100644
--- a/src/table/win32_settings.ini
+++ b/src/table/win32_settings.ini
@@ -7,8 +7,7 @@
[pre-amble]
/* win32_v.cpp only settings */
#if defined(_WIN32) && !defined(DEDICATED)
-extern bool _force_full_redraw, _window_maximize;
-extern uint _display_hz;
+extern bool _window_maximize;
static const SettingDescGlobVarList _win32_settings[] = {
[post-amble]
@@ -35,22 +34,6 @@ extra = 0
startup = true
-
-[SDTG_VAR]
-name = ""display_hz""
-type = SLE_UINT
-var = _display_hz
-def = 0
-min = 0
-max = 120
-cat = SC_EXPERT
-
-[SDTG_BOOL]
-name = ""force_full_redraw""
-var = _force_full_redraw
-def = false
-cat = SC_EXPERT
-
[SDTG_BOOL]
name = ""window_maximize""
var = _window_maximize
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index e3728a646..4a666cd1d 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -54,9 +54,7 @@ static struct {
bool running; ///< Is the main loop running?
} _wnd;
-bool _force_full_redraw;
bool _window_maximize;
-uint _display_hz;
static Dimension _bck_resolution;
DWORD _imm_props;
@@ -253,12 +251,10 @@ bool VideoDriver_Win32::MakeWindow(bool full_screen)
settings.dmFields =
DM_BITSPERPEL |
DM_PELSWIDTH |
- DM_PELSHEIGHT |
- (_display_hz != 0 ? DM_DISPLAYFREQUENCY : 0);
+ DM_PELSHEIGHT;
settings.dmBitsPerPel = BlitterFactory::GetCurrentBlitter()->GetScreenDepth();
settings.dmPelsWidth = _wnd.width_org;
settings.dmPelsHeight = _wnd.height_org;
- settings.dmDisplayFrequency = _display_hz;
/* Check for 8 bpp support. */
if (settings.dmBitsPerPel == 8 &&
@@ -1245,8 +1241,6 @@ void VideoDriver_Win32::MainLoop()
/* Avoid next_draw_tick getting behind more and more if it cannot keep up. */
if (next_draw_tick < cur_ticks - ALLOWED_DRIFT * this->GetDrawInterval()) next_draw_tick = cur_ticks;
- if (_force_full_redraw) MarkWholeScreenDirty();
-
this->InputLoop();
::InputLoop();
UpdateWindows();