diff options
author | Einar Johan Trøan Sømåen | 2012-07-27 15:55:06 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-27 15:55:06 +0200 |
commit | b3b86c440cb2a13a43ce6dd3102bf85f4211795b (patch) | |
tree | e5c5998f923785aebd3c09231df868d87973c0ec /engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | |
parent | efee8c01ceded526406a3ad6ffc2dc1c078c2ce2 (diff) | |
download | scummvm-rg350-b3b86c440cb2a13a43ce6dd3102bf85f4211795b.tar.gz scummvm-rg350-b3b86c440cb2a13a43ce6dd3102bf85f4211795b.tar.bz2 scummvm-rg350-b3b86c440cb2a13a43ce6dd3102bf85f4211795b.zip |
WINTERMUTE: Clear out a few warning()s
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_render_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index b41df5f1e2..00ef2ec95c 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -258,8 +258,9 @@ void BaseRenderOSystem::fadeToColor(byte r, byte g, byte b, byte a, Common::Rect // thus we avoid printing it more than once.
static bool hasWarned = false;
if (!hasWarned) {
- warning("BaseRenderOSystem::FadeToColor - Breaks when using dirty rects");
- warning("Implement BaseRenderOSystem::FadeToColor"); // TODO.
+ if (!_disableDirtyRects) {
+ warning("BaseRenderOSystem::FadeToColor - Breaks when using dirty rects");
+ }
hasWarned = true;
}
@@ -489,7 +490,9 @@ void BaseRenderOSystem::drawFromSurface(const Graphics::Surface *surf, Common::R bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
static bool hasWarned = false;
if (!hasWarned) {
- warning("BaseRenderOSystem::DrawLine - not fully ported yet");
+ if (!_disableDirtyRects) {
+ warning("BaseRenderOSystem::DrawLine - doesn't work for dirty rects yet");
+ }
hasWarned = true;
}
byte r = RGBCOLGetR(color);
|