aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/sdl/sdl-graphics.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-24 01:11:16 +0100
committerJohannes Schickel2011-02-24 01:11:16 +0100
commit466030443a925b27625a7151679e252dc956c817 (patch)
treeb7a5ab6e2817c1087bb7e22693ab5bbd94edabf3 /backends/graphics/sdl/sdl-graphics.h
parente2aafb603e279506c85d00f4b9fb698934994b2c (diff)
downloadscummvm-rg350-466030443a925b27625a7151679e252dc956c817.tar.gz
scummvm-rg350-466030443a925b27625a7151679e252dc956c817.tar.bz2
scummvm-rg350-466030443a925b27625a7151679e252dc956c817.zip
SDL: Add a debug focus rect implementation.
This implementation currently draws a rect frame around the focus rect area.
Diffstat (limited to 'backends/graphics/sdl/sdl-graphics.h')
-rw-r--r--backends/graphics/sdl/sdl-graphics.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.h b/backends/graphics/sdl/sdl-graphics.h
index f912fc881b..a5a8b2b385 100644
--- a/backends/graphics/sdl/sdl-graphics.h
+++ b/backends/graphics/sdl/sdl-graphics.h
@@ -35,6 +35,10 @@
#include "backends/platform/sdl/sdl-sys.h"
+#ifndef RELEASE_BUILD
+// Define this to allow for focus rectangle debugging
+#define USE_SDL_DEBUG_FOCUSRECT
+#endif
#if !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
// Uncomment this to enable the 'on screen display' code.
@@ -301,6 +305,11 @@ protected:
*/
OSystem::MutexRef _graphicsMutex;
+#ifdef USE_SDL_DEBUG_FOCUSRECT
+ bool _enableFocusRect;
+ Common::Rect _focusRect;
+#endif
+
virtual void addDirtyRect(int x, int y, int w, int h, bool realCoordinates = false);
virtual void drawMouse();