aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/gfx.cpp')
-rw-r--r--saga/gfx.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/saga/gfx.cpp b/saga/gfx.cpp
index 6dcf1f09cc..121bd7cb19 100644
--- a/saga/gfx.cpp
+++ b/saga/gfx.cpp
@@ -163,7 +163,6 @@ void Surface::transitionDissolve(const byte *sourceBuffer, const Common::Rect &s
}
}
-
void Gfx::setPalette(const PalEntry *pal) {
int i;
byte *ppal;
@@ -182,6 +181,15 @@ void Gfx::setPalette(const PalEntry *pal) {
_system->setPalette(_currentPal, 0, PAL_ENTRIES);
}
+void Gfx::setPaletteColor(int n, int r, int g, int b) {
+ _currentPal[4 * n + 0] = r;
+ _currentPal[4 * n + 1] = g;
+ _currentPal[4 * n + 2] = b;
+ _currentPal[4 * n + 3] = 0;
+
+ _system->setPalette(_currentPal, n, 1);
+}
+
void Gfx::getCurrentPal(PalEntry *src_pal) {
int i;
byte *ppal;