(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
authortron
Wed, 16 Nov 2005 13:45:04 +0000
changeset 2664 fcefd29dd9d2
parent 2663 f3e7d6d3e3a1
child 2665 eb6fb4600d23
(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
video/sdl_v.c
video/win32_v.c
--- a/video/sdl_v.c	Wed Nov 16 13:11:28 2005 +0000
+++ b/video/sdl_v.c	Wed Nov 16 13:45:04 2005 +0000
@@ -440,7 +440,9 @@
 
 			_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 =
--- a/video/win32_v.c	Wed Nov 16 13:11:28 2005 +0000
+++ b/video/win32_v.c	Wed Nov 16 13:45:04 2005 +0000
@@ -734,7 +734,9 @@
 			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) {