diff options
author | Max Horn | 2002-09-19 23:06:54 +0000 |
---|---|---|
committer | Max Horn | 2002-09-19 23:06:54 +0000 |
commit | f838473c25cba44a858a341558c34367fe1a44ea (patch) | |
tree | a68f6ce587ef97efa9bc0703b90d677e91125cd1 /scumm | |
parent | 85aa2cd8e8ba3338108df15148211bc5e1c45df9 (diff) | |
download | scummvm-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')
-rw-r--r-- | scumm/gfx.cpp | 12 | ||||
-rw-r--r-- | scumm/scummvm.cpp | 13 |
2 files changed, 12 insertions, 13 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) { diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 28490fb82c..19287b6164 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1116,19 +1116,6 @@ Actor *Scumm::derefActorSafe(int id, const char *errmsg) return derefActor(id); } -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(); -} - void Scumm::setStringVars(int slot) { StringTab *st = &string[slot]; |