aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-10-05 01:31:46 +0000
committerEugene Sandulenko2005-10-05 01:31:46 +0000
commit579478a586b6d6c51bd5f652def24b362251d082 (patch)
tree7b5ebec5bcf25e30c217232969213ec0be768f50 /saga/gfx.h
parentc7e8af5e5e620b9a4fec4a88460e42410eae6e5d (diff)
downloadscummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.tar.gz
scummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.tar.bz2
scummvm-rg350-579478a586b6d6c51bd5f652def24b362251d082.zip
IHNM used only 248 colors for game graphics. Top part of the palette
was read from resources. Switching to this scheme fixes magenta outlines in subtitles. svn-id: r18935
Diffstat (limited to 'saga/gfx.h')
-rw-r--r--saga/gfx.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/saga/gfx.h b/saga/gfx.h
index 739bff59d1..5a4a96bb67 100644
--- a/saga/gfx.h
+++ b/saga/gfx.h
@@ -134,11 +134,12 @@ public:
return &_backBuffer;
}
- void setPalette(const PalEntry *pal);
+ void initPalette();
+ void setPalette(const PalEntry *pal, int from = 0, int numcolors = PAL_ENTRIES);
void setPaletteColor(int n, int r, int g, int b);
void getCurrentPal(PalEntry *src_pal);
- void palToBlack(PalEntry *src_pal, double percent);
- void blackToPal(PalEntry *src_pal, double percent);
+ void palToBlack(PalEntry *src_pal, double percent, int from = 0, int numcolors = PAL_ENTRIES);
+ void blackToPal(PalEntry *src_pal, double percent, int from = 0, int numcolors = PAL_ENTRIES);
void updateCursor() { setCursor(); }
void showCursor(bool state);
@@ -149,6 +150,8 @@ private:
byte _currentPal[PAL_ENTRIES * 4];
OSystem *_system;
SagaEngine *_vm;
+
+ PalEntry _globalPalette[PAL_ENTRIES];
};
} // End of namespace Saga