Fix cursor palette in Elvira 1
svn-id: r24552
This commit is contained in:
parent
aa6a92ac6d
commit
c85c37561d
1 changed files with 2 additions and 1 deletions
|
@ -527,6 +527,7 @@ void AGOSEngine::drawMousePointer() {
|
||||||
const uint16 *src;
|
const uint16 *src;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
|
const uint8 color = (getGameType() == GType_ELVIRA1) ? 15: 65;
|
||||||
memset(_mouseData, 0xFF, _maxCursorWidth * _maxCursorHeight);
|
memset(_mouseData, 0xFF, _maxCursorWidth * _maxCursorHeight);
|
||||||
|
|
||||||
uint cursor = _mouseCursor;
|
uint cursor = _mouseCursor;
|
||||||
|
@ -542,7 +543,7 @@ void AGOSEngine::drawMousePointer() {
|
||||||
for (j = 0; j < 16; j++) {
|
for (j = 0; j < 16; j++) {
|
||||||
if (src[0] & (1 << (15 - (j % 16)))) {
|
if (src[0] & (1 << (15 - (j % 16)))) {
|
||||||
if (src[1] & (1 << (15 - (j % 16)))) {
|
if (src[1] & (1 << (15 - (j % 16)))) {
|
||||||
_mouseData[16 * i + j] = 65;
|
_mouseData[16 * i + j] = color;
|
||||||
} else {
|
} else {
|
||||||
_mouseData[16 * i + j] = 0;
|
_mouseData[16 * i + j] = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue