Changeset - r2664:596d1ebbe5f9
[Not reviewed]
master
0 2 0
tron - 19 years ago 2005-11-16 13:45:04
tron@openttd.org
(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
2 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
video/sdl_v.c
Show inline comments
 
@@ -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 =
video/win32_v.c
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)