diff options
author | James Brown | 2002-04-19 15:09:27 +0000 |
---|---|---|
committer | James Brown | 2002-04-19 15:09:27 +0000 |
commit | eb1ce63f086ae65288d93e10f71002e6351ae5c0 (patch) | |
tree | 4c9d5757934c7a72eda43db9f609dae8d5305f2d | |
parent | 82192a31723097ecf0cc305589605d23d3b01e4c (diff) | |
download | scummvm-rg350-eb1ce63f086ae65288d93e10f71002e6351ae5c0.tar.gz scummvm-rg350-eb1ce63f086ae65288d93e10f71002e6351ae5c0.tar.bz2 scummvm-rg350-eb1ce63f086ae65288d93e10f71002e6351ae5c0.zip |
Fix PocketScumm palette. A few stubbed functions, but otherwise it's ready to go!
svn-id: r4010
-rw-r--r-- | wince/pocketpc.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wince/pocketpc.cpp b/wince/pocketpc.cpp index f5e7a5bb99..1d686c3b14 100644 --- a/wince/pocketpc.cpp +++ b/wince/pocketpc.cpp @@ -790,10 +790,13 @@ OSystem *OSystem_WINCE3_create() { } void OSystem_WINCE3::set_palette(const byte *colors, uint start, uint num) { - int i; - - for (i=0; i<256; i++) - SetPalEntry(i, colors[i*3+0], colors[i*3+1], colors[i*3+2]); + const byte *b = colors; + uint i; + //SDL_Color *base = _cur_pal + start; + for(i=0;i!=num;i++) { + SetPalEntry(i + start, b[0], b[1], b[2]); + b += 4; + } palette_update(); } |