diff options
author | Kari Salminen | 2007-07-06 16:50:44 +0000 |
---|---|---|
committer | Kari Salminen | 2007-07-06 16:50:44 +0000 |
commit | 118181e848014684272f095f4c323826cd7c9fa3 (patch) | |
tree | 4db8ef243a919bbe5e04040e86a6cc4413628f1d /engines | |
parent | 3efcdd7a4316d41fa9626ceee0f8491b463a76c7 (diff) | |
download | scummvm-rg350-118181e848014684272f095f4c323826cd7c9fa3.tar.gz scummvm-rg350-118181e848014684272f095f4c323826cd7c9fa3.tar.bz2 scummvm-rg350-118181e848014684272f095f4c323826cd7c9fa3.zip |
Added data for an Amiga-style busy mouse cursor (An hourglass). Not used yet though.
svn-id: r27941
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/graphics.cpp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index aa9b1a315c..54f1783d83 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -768,7 +768,8 @@ static const byte amigaMouseCursor[] = { }; /** - * RGBA-palette for the Amiga-style arrow cursor. + * RGBA-palette for the Amiga-style arrow cursor + * and the Amiga-style busy cursor. */ static const byte amigaMouseCursorPalette[] = { 0x00, 0x00, 0x00, 0x00, // Black @@ -776,6 +777,32 @@ static const byte amigaMouseCursorPalette[] = { 0xFF, 0xCF, 0xAD, 0x00 // Light red }; +/** + * An Amiga-style busy cursor showing an hourglass (13x16). + * 0 = Transparent. + * 1 = Black (#000000 in 24-bit RGB). + * 2 = Red (#DE2021 in 24-bit RGB). + * 3 = Light red (#FFCFAD in 24-bit RGB). + */ +static const byte busyAmigaMouseCursor[] = { + 1,1,1,1,1,1,1,1,1,1,1,1,1, + 1,2,2,2,2,2,2,2,2,2,2,2,1, + 1,2,2,2,2,2,2,2,2,2,2,2,1, + 0,1,3,3,3,3,3,3,3,3,3,1,0, + 0,0,1,3,3,3,3,3,3,3,1,0,0, + 0,0,0,1,3,3,3,3,3,1,0,0,0, + 0,0,0,0,1,3,3,3,1,0,0,0,0, + 0,0,0,0,0,1,3,1,0,0,0,0,0, + 0,0,0,0,0,1,3,1,0,0,0,0,0, + 0,0,0,0,1,2,3,2,1,0,0,0,0, + 0,0,0,1,2,2,3,2,2,1,0,0,0, + 0,0,1,2,2,2,3,2,2,2,1,0,0, + 0,1,2,2,2,3,3,3,2,2,2,1,0, + 1,3,3,3,3,3,3,3,3,3,3,3,1, + 1,3,3,3,3,3,3,3,3,3,3,3,1, + 1,1,1,1,1,1,1,1,1,1,1,1,1 +}; + void GfxMgr::setCursor(bool amigaStyleCursor) { if (!amigaStyleCursor) { CursorMan.replaceCursorPalette(sciMouseCursorPalette, 1, ARRAYSIZE(sciMouseCursorPalette) / 4); |