summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-21 16:53:57 +0000
committertruelight <truelight@openttd.org>2007-06-21 16:53:57 +0000
commitaf8a234db03d075167a3bd50251905b40c6998c2 (patch)
treede64446fa3e39d4d97a3b476b363581bb8acf63d /src/gfx.cpp
parent56eb1738ee6de39367047a3cd0f20011560eb393 (diff)
downloadopenttd-af8a234db03d075167a3bd50251905b40c6998c2.tar.xz
(svn r10255) -Codechange: remove some old debug code nobody was using anymore
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 7d2c9b273..3028f444a 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -22,10 +22,6 @@
#include "texteff.hpp"
#include "blitter/factory.hpp"
-#ifdef _DEBUG
-bool _dbg_screen_rect;
-#endif
-
byte _dirkeys; ///< 1 = left, 2 = up, 4 = right, 8 = down
bool _fullscreen;
CursorVars _cursor;
@@ -896,20 +892,6 @@ void DrawMouseCursor()
_cursor.dirty = false;
}
-#if defined(_DEBUG)
-static void DbgScreenRect(int left, int top, int right, int bottom)
-{
- DrawPixelInfo dp;
- DrawPixelInfo *old;
-
- old = _cur_dpi;
- _cur_dpi = &dp;
- dp = _screen;
- GfxFillRect(left, top, right - 1, bottom - 1, rand() & 255);
- _cur_dpi = old;
-}
-#endif
-
void RedrawScreenRect(int left, int top, int right, int bottom)
{
assert(right <= _screen.width && bottom <= _screen.height);
@@ -923,12 +905,7 @@ void RedrawScreenRect(int left, int top, int right, int bottom)
}
UndrawTextMessage();
-#if defined(_DEBUG)
- if (_dbg_screen_rect)
- DbgScreenRect(left, top, right, bottom);
- else
-#endif
- DrawOverlappedWindowForAll(left, top, right, bottom);
+ DrawOverlappedWindowForAll(left, top, right, bottom);
_video_driver->make_dirty(left, top, right - left, bottom - top);
}