diff options
author | Einar Johan Trøan Sømåen | 2012-06-03 22:12:08 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-03 22:12:08 +0200 |
commit | 311341bff02670d7b0a94e7499229a038a816edd (patch) | |
tree | b6c4fd02e1d24e3d98d51772d22c1ed384109cbc | |
parent | 9ea09aee2443949e5c7cee5b51adc6ff4772b43f (diff) | |
download | scummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.tar.gz scummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.tar.bz2 scummvm-rg350-311341bff02670d7b0a94e7499229a038a816edd.zip |
WINTERMUTE: Correct RGBA->ARGB in BSurfaceSDL
-rw-r--r-- | engines/wintermute/Base/BRenderSDL.cpp | 2 |
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) {
|