diff options
Diffstat (limited to 'engines/wintermute/Base/BSurfaceSDL.cpp')
-rw-r--r-- | engines/wintermute/Base/BSurfaceSDL.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/wintermute/Base/BSurfaceSDL.cpp b/engines/wintermute/Base/BSurfaceSDL.cpp index af41231968..391b83c7bb 100644 --- a/engines/wintermute/Base/BSurfaceSDL.cpp +++ b/engines/wintermute/Base/BSurfaceSDL.cpp @@ -456,12 +456,12 @@ HRESULT CBSurfaceSDL::DrawSprite(int X, int Y, RECT *Rect, float ZoomX, float Zo warning("CBSurfaceSDL::DrawSprite not fully ported yet"); // TODO.
hasWarned = true;
}
-#if 0
+
byte r = D3DCOLGetR(Alpha);
byte g = D3DCOLGetG(Alpha);
byte b = D3DCOLGetB(Alpha);
byte a = D3DCOLGetA(Alpha);
-
+#if 0
SDL_SetTextureColorMod(_texture, r, g, b);
SDL_SetTextureAlphaMod(_texture, a);
@@ -499,4 +499,9 @@ HRESULT CBSurfaceSDL::DrawSprite(int X, int Y, RECT *Rect, float ZoomX, float Zo return S_OK;
}
+HRESULT CBSurfaceSDL::PutSurface(const Graphics::Surface &surface) {
+ _surface->copyFrom(surface);
+ return S_OK;
+}
+
} // end of namespace WinterMute
|