aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_lok.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-10 01:34:14 +0000
committerJohannes Schickel2009-08-10 01:34:14 +0000
commitbee9391d95ccd85a13a31b8d3a129f367c8c23c7 (patch)
tree09802ae1c9919066a3f0dd1491645aff1bec4a81 /engines/kyra/screen_lok.cpp
parentd68706d8edcdf8e605c2e2ddbf7dd05d96785fe9 (diff)
downloadscummvm-rg350-bee9391d95ccd85a13a31b8d3a129f367c8c23c7.tar.gz
scummvm-rg350-bee9391d95ccd85a13a31b8d3a129f367c8c23c7.tar.bz2
scummvm-rg350-bee9391d95ccd85a13a31b8d3a129f367c8c23c7.zip
Use interface palette for mouse cursor in Kyra1 amiga, when it's enabled.
svn-id: r43197
Diffstat (limited to 'engines/kyra/screen_lok.cpp')
-rw-r--r--engines/kyra/screen_lok.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/kyra/screen_lok.cpp b/engines/kyra/screen_lok.cpp
index 9fdeae1398..b35f0f5cf0 100644
--- a/engines/kyra/screen_lok.cpp
+++ b/engines/kyra/screen_lok.cpp
@@ -240,6 +240,20 @@ int Screen_LoK::getRectSize(int x, int y) {
return ((x*y) << 3);
}
+void Screen_LoK::postProcessCursor(uint8 *data, int width, int height, int pitch) {
+ if (_vm->gameFlags().platform == Common::kPlatformAmiga && _interfacePaletteEnabled) {
+ pitch -= width;
+
+ for (int y = 0; y < height; ++y) {
+ for (int x = 0; x < width; ++x)
+ if (*data != _cursorColorKey)
+ *data++ += 32;
+
+ data += pitch;
+ }
+ }
+}
+
#pragma mark -
Screen_LoK_16::Screen_LoK_16(KyraEngine_LoK *vm, OSystem *system) : Screen_LoK(vm, system) {