aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wince/pocketpc.cpp11
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();
}