aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan T. Sømåen2012-06-07 13:40:57 +0200
committerEinar Johan T. Sømåen2012-06-07 13:40:57 +0200
commit9aa2d43facd0a3fbafb1e7e432fca80f89aa6c66 (patch)
treed35b391d4279b9d1a286744d4f09363d8b5f5221 /engines
parent6e04d78a3652d9eea9ba7220967afe3d6c1cd89f (diff)
downloadscummvm-rg350-9aa2d43facd0a3fbafb1e7e432fca80f89aa6c66.tar.gz
scummvm-rg350-9aa2d43facd0a3fbafb1e7e432fca80f89aa6c66.tar.bz2
scummvm-rg350-9aa2d43facd0a3fbafb1e7e432fca80f89aa6c66.zip
WINTERMUTE: Fix BRenderSDL::Fill
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BRenderSDL.cpp3
-rw-r--r--engines/wintermute/Base/BRenderSDL.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/wintermute/Base/BRenderSDL.cpp b/engines/wintermute/Base/BRenderSDL.cpp
index 5513dd5e69..3dca9e1f39 100644
--- a/engines/wintermute/Base/BRenderSDL.cpp
+++ b/engines/wintermute/Base/BRenderSDL.cpp
@@ -238,8 +238,9 @@ HRESULT CBRenderSDL::Fill(byte r, byte g, byte b, Common::Rect *rect) {
rect->setHeight(_renderSurface->h);
_renderSurface->fillRect(*rect, color);
delete rect;
+ } else {
+ _renderSurface->fillRect(*rect, color);
}
- _renderSurface->fillRect(*rect, color);
return S_OK;
}
diff --git a/engines/wintermute/Base/BRenderSDL.h b/engines/wintermute/Base/BRenderSDL.h
index ab343578f4..ccdca89be5 100644
--- a/engines/wintermute/Base/BRenderSDL.h
+++ b/engines/wintermute/Base/BRenderSDL.h
@@ -47,7 +47,7 @@ public:
HRESULT InitRenderer(int width, int height, bool windowed);
HRESULT Flip();
- HRESULT Fill(byte r, byte g, byte b, Common::Rect *rect);
+ HRESULT Fill(byte r, byte g, byte b, Common::Rect *rect = NULL);
HRESULT Fade(uint16 Alpha);
HRESULT FadeToColor(uint32 Color, Common::Rect *rect = NULL);