From f838473c25cba44a858a341558c34367fe1a44ea Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 19 Sep 2002 23:06:54 +0000 Subject: 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 --- scumm/gfx.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scumm/gfx.cpp') 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) { -- cgit v1.2.3