diff options
author | Filippos Karapetis | 2013-01-23 00:25:38 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-01-23 00:25:38 +0200 |
commit | 338c88e5c231dc821f5f7c49d65bb14d3f8e63a1 (patch) | |
tree | 04fd283a9a2910feed1ba17bf62636c28e526d84 /engines/wintermute/base/gfx | |
parent | 03634d083360787f983f0ced22f817393f0c0ec2 (diff) | |
download | scummvm-rg350-338c88e5c231dc821f5f7c49d65bb14d3f8e63a1.tar.gz scummvm-rg350-338c88e5c231dc821f5f7c49d65bb14d3f8e63a1.tar.bz2 scummvm-rg350-338c88e5c231dc821f5f7c49d65bb14d3f8e63a1.zip |
WINTERMUTE: Fix incorrect reversion of code in BaseRenderOSystem::drawLine()
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 6918baf84e..d1884a5a1b 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -484,10 +484,10 @@ void BaseRenderOSystem::drawFromSurface(RenderTicket *ticket, Common::Rect *dstR ////////////////////////////////////////////////////////////////////////// bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) { - 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; + // This function isn't used outside of indicator-displaying, and thus quite unused in + // BaseRenderOSystem when dirty-rects are enabled. + if (!_disableDirtyRects && !_indicatorDisplay) { + error("BaseRenderOSystem::DrawLine - doesn't work for dirty rects yet"); } byte r = RGBCOLGetR(color); |