diff options
author | Johannes Schickel | 2011-02-16 00:04:25 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-02-16 00:04:25 +0100 |
commit | 462f06d8061748d2819371056dabc7a0e0fc456e (patch) | |
tree | bb6ea1c9effafd0dc13d986d8cf1c5ff1970a9ad /backends/platform | |
parent | a52b16ceb31eb1ae3b3005ab343011d0d9a25dbc (diff) | |
download | scummvm-rg350-462f06d8061748d2819371056dabc7a0e0fc456e.tar.gz scummvm-rg350-462f06d8061748d2819371056dabc7a0e0fc456e.tar.bz2 scummvm-rg350-462f06d8061748d2819371056dabc7a0e0fc456e.zip |
DC: Adapt to setPalette/grabPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/dc/display.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/platform/dc/display.cpp b/backends/platform/dc/display.cpp index 53dbff333d..b297022775 100644 --- a/backends/platform/dc/display.cpp +++ b/backends/platform/dc/display.cpp @@ -156,7 +156,7 @@ void OSystem_Dreamcast::setPalette(const byte *colors, uint start, uint num) *dst++ = ((colors[0]<<7)&0x7c00)| ((colors[1]<<2)&0x03e0)| ((colors[2]>>3)&0x001f); - colors += 4; + colors += 3; } _screen_dirty = true; } @@ -169,7 +169,7 @@ void OSystem_Dreamcast::setCursorPalette(const byte *colors, uint start, uint nu *dst++ = ((colors[0]<<7)&0x7c00)| ((colors[1]<<2)&0x03e0)| ((colors[2]>>3)&0x001f); - colors += 4; + colors += 3; } _enable_cursor_palette = true; } @@ -188,8 +188,7 @@ void OSystem_Dreamcast::grabPalette(byte *colors, uint start, uint num) colors[0] = ((p&0x7c00)>>7)|((p&0x7000)>>12); colors[1] = ((p&0x03e0)>>2)|((p&0x0380)>>7); colors[2] = ((p&0x001f)<<3)|((p&0x001c)>>2); - colors[3] = 0xff; - colors += 4; + colors += 3; } } |