aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-19 23:06:54 +0000
committerMax Horn2002-09-19 23:06:54 +0000
commitf838473c25cba44a858a341558c34367fe1a44ea (patch)
treea68f6ce587ef97efa9bc0703b90d677e91125cd1 /scumm/gfx.cpp
parent85aa2cd8e8ba3338108df15148211bc5e1c45df9 (diff)
downloadscummvm-rg350-f838473c25cba44a858a341558c34367fe1a44ea.tar.gz
scummvm-rg350-f838473c25cba44a858a341558c34367fe1a44ea.tar.bz2
scummvm-rg350-f838473c25cba44a858a341558c34367fe1a44ea.zip
NewGui now has its own mouse cursor code -> again one less dependency on Scumm; moved makeCursorColorTransparent to gfx.cpp where it belongs
svn-id: r4977
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 6493d694aa..6939f9cac6 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -3001,6 +3001,18 @@ void Scumm::decompressDefaultCursor(int idx)
updateCursor();
}
+void Scumm::makeCursorColorTransparent(int a)
+{
+ int i, size;
+
+ size = _cursorWidth * _cursorHeight;
+
+ for (i = 0; i < size; i++)
+ if (_grabbedCursor[i] == (byte)a)
+ _grabbedCursor[i] = 0xFF;
+
+ updateCursor();
+}
int Scumm::remapPaletteColor(int r, int g, int b, uint threshold)
{