[Scummvm-cvs-logs] CVS: scummvm/wince pocketpc.cpp,1.11,1.12
James Brown
ender at users.sourceforge.net
Fri Apr 19 08:10:08 CEST 2002
Update of /cvsroot/scummvm/scummvm/wince
In directory usw-pr-cvs1:/tmp/cvs-serv20933/wince
Modified Files:
pocketpc.cpp
Log Message:
Fix PocketScumm palette. A few stubbed functions, but otherwise it's ready to go!
Index: pocketpc.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/wince/pocketpc.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** pocketpc.cpp 19 Apr 2002 15:02:16 -0000 1.11
--- pocketpc.cpp 19 Apr 2002 15:09:27 -0000 1.12
***************
*** 791,798 ****
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]);
palette_update();
--- 791,801 ----
void OSystem_WINCE3::set_palette(const byte *colors, uint start, uint num) {
! 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();
More information about the Scummvm-git-logs
mailing list