aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/BRenderSDL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/BRenderSDL.cpp')
-rw-r--r--engines/wintermute/BRenderSDL.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/wintermute/BRenderSDL.cpp b/engines/wintermute/BRenderSDL.cpp
index 78c68c0cea..9e9d7ef6d5 100644
--- a/engines/wintermute/BRenderSDL.cpp
+++ b/engines/wintermute/BRenderSDL.cpp
@@ -235,7 +235,13 @@ HRESULT CBRenderSDL::Fade(WORD Alpha) {
//////////////////////////////////////////////////////////////////////////
HRESULT CBRenderSDL::FadeToColor(uint32 Color, RECT *rect) {
- warning("Implement CBRenderSDL::FadeToColor");
+ // This particular warning is rather messy, as this function is called a ton,
+ // thus we avoid printing it more than once.
+ static bool hasWarned = false;
+ if (!hasWarned) {
+ warning("Implement CBRenderSDL::FadeToColor"); // TODO.
+ hasWarned = true;
+ }
#if 0
SDL_Rect fillRect;