diff options
author | tron <tron@openttd.org> | 2005-11-16 13:45:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-16 13:45:04 +0000 |
commit | 7d750783af7a8ffce64b8a48cc2916d4d3e370df (patch) | |
tree | e3b95de9ca381bd509fbe4b29151619555b0952d /video | |
parent | ef7fb8b515315d53582f64a6b46d04162a8e89a2 (diff) | |
download | openttd-7d750783af7a8ffce64b8a48cc2916d4d3e370df.tar.xz |
(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
Diffstat (limited to 'video')
-rw-r--r-- | video/sdl_v.c | 2 | ||||
-rw-r--r-- | video/win32_v.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c index f9b96f7eb..93ff90bbc 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -440,7 +440,9 @@ static void SdlVideoMainLoop(void) _ctrl_pressed = !!(mod & (KMOD_LCTRL | KMOD_RCTRL)); _shift_pressed = !!(mod & (KMOD_LSHIFT | KMOD_RSHIFT)); +#ifdef _DEBUG _dbg_screen_rect = !!(mod & KMOD_CAPS); +#endif // determine which directional keys are down _dirkeys = diff --git a/video/win32_v.c b/video/win32_v.c index 90997804a..072077c6a 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -734,7 +734,9 @@ static void Win32GdiMainLoop(void) next_tick += 30; _ctrl_pressed = _wnd.has_focus && GetAsyncKeyState(VK_CONTROL)<0; _shift_pressed = _wnd.has_focus && GetAsyncKeyState(VK_SHIFT)<0; +#ifdef _DEBUG _dbg_screen_rect = _wnd.has_focus && GetAsyncKeyState(VK_CAPITAL)<0; +#endif _DEBUG // determine which directional keys are down if (_wnd.has_focus) { |