aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-12-09 12:54:52 +0100
committerEinar Johan Trøan Sømåen2012-12-09 12:54:52 +0100
commit83ecd85e7838dc54ff8608d1971817cf5cb17048 (patch)
tree02d8e63f4f94253a1dc74bc94f8eb4b01e978645 /engines/wintermute/base/gfx
parent2ede3f58a0c0522665daa8cff745da0a9b62c0b6 (diff)
downloadscummvm-rg350-83ecd85e7838dc54ff8608d1971817cf5cb17048.tar.gz
scummvm-rg350-83ecd85e7838dc54ff8608d1971817cf5cb17048.tar.bz2
scummvm-rg350-83ecd85e7838dc54ff8608d1971817cf5cb17048.zip
WINTERMUTE: Only warn about drawLine once.
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_render_osystem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index 746a648d51..3255156599 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -529,9 +529,10 @@ void BaseRenderOSystem::drawFromSurface(const Graphics::Surface *surf, Common::R
//////////////////////////////////////////////////////////////////////////
bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
-
- if (!_disableDirtyRects) {
+ static bool hasWarned = false; // TODO: Fix this, this only avoids spamming warnings for now.
+ if (!_disableDirtyRects && !hasWarned) {
warning("BaseRenderOSystem::DrawLine - doesn't work for dirty rects yet");
+ hasWarned = true;
}
byte r = RGBCOLGetR(color);