Skip to content

Commit

Permalink
WINTERMUTE: Only warn about drawLine once.
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Dec 9, 2012
1 parent 2ede3f5 commit 83ecd85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 83ecd85

Please sign in to comment.