aboutsummaryrefslogtreecommitdiff
path: root/saga/gfx.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-10-04 17:44:41 +0000
committerTorbjörn Andersson2005-10-04 17:44:41 +0000
commitba306c80f4a59b73f7cf4dc51e90c1bf37e223ff (patch)
treeda3bb7dcf297ce81c9c442228fb7dbea26cfc338 /saga/gfx.cpp
parent3bcb098fd31a0f68171fd4053f2600bb84814a5a (diff)
downloadscummvm-rg350-ba306c80f4a59b73f7cf4dc51e90c1bf37e223ff.tar.gz
scummvm-rg350-ba306c80f4a59b73f7cf4dc51e90c1bf37e223ff.tar.bz2
scummvm-rg350-ba306c80f4a59b73f7cf4dc51e90c1bf37e223ff.zip
Unstubbed sf75() as sfSetPortraitBgColor(), using information from sev. Any
mistake is strictly my own, however. svn-id: r18931
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;