aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-03 22:12:08 +0200
committerEinar Johan Trøan Sømåen2012-06-03 22:12:08 +0200
commit311341bff02670d7b0a94e7499229a038a816edd (patch)
treeb6c4fd02e1d24e3d98d51772d22c1ed384109cbc /engines/wintermute
parent9ea09aee2443949e5c7cee5b51adc6ff4772b43f (diff)
downloadscummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.tar.gz
scummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.tar.bz2
scummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.zip
WINTERMUTE: Correct RGBA->ARGB in BSurfaceSDL
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/Base/BRenderSDL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BRenderSDL.cpp b/engines/wintermute/Base/BRenderSDL.cpp
index 066e89e83c..93fed39a59 100644
--- a/engines/wintermute/Base/BRenderSDL.cpp
+++ b/engines/wintermute/Base/BRenderSDL.cpp
@@ -284,7 +284,7 @@ HRESULT CBRenderSDL::FadeToColor(uint32 Color, RECT *rect) {
// Replacement for SDL2's SDL_RenderCopy
void CBRenderSDL::drawFromSurface(Graphics::Surface *surf, Common::Rect *srcRect, Common::Rect *dstRect, byte r, byte g, byte b, byte a) {
TransparentSurface src(*surf, false);
- src.blit(*_renderSurface, dstRect->left, dstRect->top, TransparentSurface::FLIP_NONE, srcRect,BS_ARGB(r, g, b, a), dstRect->width(), dstRect->height() );
+ src.blit(*_renderSurface, dstRect->left, dstRect->top, TransparentSurface::FLIP_NONE, srcRect,BS_ARGB(a, r, g, b), dstRect->width(), dstRect->height() );
}
//////////////////////////////////////////////////////////////////////////
HRESULT CBRenderSDL::DrawLine(int X1, int Y1, int X2, int Y2, uint32 Color) {