From 9620428fdf88b056cabab049c5de9155dbf35eb7 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 11 Aug 2009 19:02:30 +0000 Subject: [PATCH] This part wasn't meant to be committed git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32262 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/WindowScreen.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/kits/game/WindowScreen.cpp b/src/kits/game/WindowScreen.cpp index 6a5f45c06d..101321ab17 100644 --- a/src/kits/game/WindowScreen.cpp +++ b/src/kits/game/WindowScreen.cpp @@ -337,13 +337,10 @@ BWindowScreen::SetColorList(rgb_color *list, int32 firstIndex, int32 lastIndex) for (int32 x = firstIndex; x <= lastIndex; x++) { fPalette[x] = list[x - firstIndex]; // update our local palette as well - } - - j = 0; - for (int32 i = 0; i < 256; i++) { - colors[j++] = fPalette[i].red; - colors[j++] = fPalette[i].green; - colors[j++] = fPalette[i].blue; + + colors[j++] = fPalette[x].red; + colors[j++] = fPalette[x].green; + colors[j++] = fPalette[x].blue; } if (fAddonImage >= 0) {