[Scummvm-cvs-logs] SF.net SVN: scummvm: [24766] scummvm/trunk/engines/cine/gfx.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Thu Nov 23 07:45:22 CET 2006
Revision: 24766
http://svn.sourceforge.net/scummvm/?rev=24766&view=rev
Author: sev
Date: 2006-11-22 22:45:21 -0800 (Wed, 22 Nov 2006)
Log Message:
-----------
et up cursor palette. This fixes Amiga/Atari versions and makes cursor more
visible in most cases.
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2006-11-23 06:43:18 UTC (rev 24765)
+++ scummvm/trunk/engines/cine/gfx.cpp 2006-11-23 06:45:21 UTC (rev 24766)
@@ -28,6 +28,7 @@
#include "common/system.h"
#include "graphics/cursorman.h"
+#include "graphics/paletteman.h"
namespace Cine {
@@ -87,6 +88,11 @@
{ 7, 7, mouseCursorCross }
};
+static const byte cursorPalette[] = {
+ 0, 0, 0, 0xff,
+ 0xff, 0xff, 0xff, 0xff
+};
+
void init_video() {
screenBuffer = (byte *)malloc(320 * 200 * 3);
assert(screenBuffer);
@@ -108,7 +114,7 @@
int offs = i * 8;
for (byte mask = 0x80; mask != 0; mask >>= 1) {
if (src[0] & mask) {
- mouseCursor[offs] = 2;
+ mouseCursor[offs] = 1;
} else if (src[32] & mask) {
mouseCursor[offs] = 0;
} else {
@@ -119,6 +125,7 @@
++src;
}
CursorMan.replaceCursor(mouseCursor, 16, 16, mc->hotspotX, mc->hotspotY);
+ PaletteMan.replaceCursorPalette(cursorPalette, 0, 2);
currentMouseCursor = cursor;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list