mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
WINTERMUTE: Only warn about drawLine once.
This commit is contained in:
parent
2ede3f58a0
commit
83ecd85e78
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user