diff options
author | Max Lingua | 2014-01-10 01:07:21 -0500 |
---|---|---|
committer | Max Lingua | 2014-01-18 13:40:32 -0500 |
commit | 623a0e7d619944fb390aaed55ea53eb1d7cd42db (patch) | |
tree | 0334842f115e6f7a7357b556a8d46abd9bd771ae /backends/platform | |
parent | 8e009b447b3c43a4164cae98c0857eb6e0c72489 (diff) | |
download | scummvm-rg350-623a0e7d619944fb390aaed55ea53eb1d7cd42db.tar.gz scummvm-rg350-623a0e7d619944fb390aaed55ea53eb1d7cd42db.tar.bz2 scummvm-rg350-623a0e7d619944fb390aaed55ea53eb1d7cd42db.zip |
PS2: use createPixelFormat for overlay format
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/ps2/Gs2dScreen.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp index 31e073a25f..53b620a591 100644 --- a/backends/platform/ps2/Gs2dScreen.cpp +++ b/backends/platform/ps2/Gs2dScreen.cpp @@ -32,6 +32,7 @@ #include "DmaPipe.h" #include "GsDefs.h" #include "graphics/surface.h" +#include "graphics/colormasks.h" #include "backends/platform/ps2/ps2debug.h" extern void *_gp; @@ -202,12 +203,12 @@ Gs2dScreen::Gs2dScreen(uint16 width, uint16 height, TVMode mode) { _overlayFormat.rLoss = 3; _overlayFormat.gLoss = 3; _overlayFormat.bLoss = 3; - _overlayFormat.aLoss = 7; + _overlayFormat.aLoss = 7; // 8 _overlayFormat.rShift = 0; _overlayFormat.gShift = 5; _overlayFormat.bShift = 10; - _overlayFormat.aShift = 15; + _overlayFormat.aShift = 15; // 0 // setup hardware now. GS_CSR = CSR_RESET; // Reset GS @@ -526,7 +527,8 @@ void Gs2dScreen::hideOverlay(void) { } Graphics::PixelFormat Gs2dScreen::getOverlayFormat(void) { - return _overlayFormat; + // return _overlayFormat; + return Graphics::createPixelFormat<1555>(); } int16 Gs2dScreen::getOverlayWidth(void) { |