aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJoost Peters2007-04-09 11:30:53 +0000
committerJoost Peters2007-04-09 11:30:53 +0000
commit871e83d0705fc3a18a3cb4e7db1e77ee6481422f (patch)
treec2687143b4bbf97058e26b290642503152ec3e43 /backends/platform
parentc2b288028741a8abda8e89c146e15f5209ba78e4 (diff)
downloadscummvm-rg350-871e83d0705fc3a18a3cb4e7db1e77ee6481422f.tar.gz
scummvm-rg350-871e83d0705fc3a18a3cb4e7db1e77ee6481422f.tar.bz2
scummvm-rg350-871e83d0705fc3a18a3cb4e7db1e77ee6481422f.zip
initialize _palette in OSystem_PSP_GU ctor, as it's used in setMouseCursor() before an actual palette has been set up. (fixes "[ 1670882 ] PSP: Missing cursor on Main Menu")
svn-id: r26434
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/psp/osys_psp_gu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/psp/osys_psp_gu.cpp b/backends/platform/psp/osys_psp_gu.cpp
index b8d39c72ca..0a8cd71dda 100644
--- a/backends/platform/psp/osys_psp_gu.cpp
+++ b/backends/platform/psp/osys_psp_gu.cpp
@@ -143,6 +143,7 @@ void OSystem_PSP_GU::initSize(uint width, uint height) {
_offscreen = (unsigned byte *)_overlayBuffer + _overlayWidth * _overlayHeight * sizeof(OverlayColor);
bzero(_offscreen, width * height);
clearOverlay();
+ memset(_palette, 0xffff, 256 * sizeof(unsigned short));
_kbdClut[0] = 0xffff;
_kbdClut[246] = 0x4ccc;
_kbdClut[247] = 0x0000;