32 Commits

Author SHA1 Message Date
Johannes Schickel
abd9e92086 MOHAWK: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
575cfca013 MOHAWK: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
6eb9c8da9e MOHAWK: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Matthew Hoops
6a3f735392 MOHAWK: Fix cursor group memory leak 2013-04-15 18:19:09 -04:00
Filippos Karapetis
e9e2d6ccb9 MOHAWK: Initialize the empty cursor before setting it inside setCursor() 2012-12-17 19:01:03 +02:00
Filippos Karapetis
9e40a91b26 MOHAWK: Set a 2x2 invisible cursor, instead of a 1x1
This prevents an assert when hiding the mouse cursor while using a 2x scaled mode in Myst
2012-12-17 18:47:03 +02:00
Johannes Schickel
60a6ce70c1 MOHAWK: Get rid of casts on CursorManager::replaceCursor calls. 2012-06-16 03:28:43 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Matthew Hoops
b253a05454 GRAPHICS: Hide the WinCursor implementation 2012-05-14 09:56:56 -04:00
Matthew Hoops
8004a82f29 MOHAWK: Fix using the Mac binary for Riven cursors 2011-08-29 10:35:08 -04:00
Matthew Hoops
a18312677d MOHAWK: Use the default Windows cursor in /graphics now 2011-08-16 00:30:42 -04:00
Matthew Hoops
559c278b09 MOHAWK: Allow setting LB cursors by name 2011-07-05 13:09:27 -04:00
Matthew Hoops
71c4329d86 MOHAWK: Rework archive handling
A new base class has been introduced (aptly named "Archive"), which is much cleaner than inheriting from MohawkArchive. In addition, the underlying resource retrieving code has been merged to reduce dupliplication.
2011-06-28 12:10:28 -04:00
D G Turner
6bb745c16e MOHAWK: Fix Memory Leak in PE Cursor Loading. 2011-06-16 01:24:58 +01:00
Bastien Bouclet
af9dc7a29c MOHAWK: Display a black screen while changing stack. Default to an empty cursor. 2011-05-15 17:41:54 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Matthew Hoops
1f39e0b6c6 MOHAWK: Use new MacCursor code instead of convertCrsrCursor() 2011-05-05 19:35:31 -04:00
Johannes Schickel
ca240b4936 MOHAWK: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:58:07 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Matthew Hoops
e5811cd6c3 MOHAWK: Allow disabling compilation of Myst 2011-03-28 22:26:23 -04:00
Matthew Hoops
10dad00a79 MOHAWK: Improve error handling when data isn't found 2011-03-07 11:00:41 -05:00
Matthew Hoops
ad7400524b MOHAWK: Make Riven use original executables for cursors
It will try both Windows and Macintosh executables. The hardcoded cursors have been removed.
2011-03-07 01:10:01 -05:00
Matthew Hoops
c66233f83e GRAPHICS: Split the NE cursor code from the NEResources class
Now the code lies in Graphics and all cursors are not cached upon opening an exe. The engine is now in charge of caching which cursors it wants.
2011-03-04 23:17:57 -05:00
Matthew Hoops
e053373dd3 COMMON: Add a key color field to NECursor 2011-02-22 20:11:50 -05:00
Matthew Hoops
a2a0b13de2 COMMON: Begin to merge some NE/PE code
The ID classes are now common to both. The files have been renamed to better illustrate their purpose.
2011-02-22 20:03:18 -05:00
Johannes Schickel
accab0e00f MOHAWK: Change bitmaps to use RGB palettes.
Thanks to clone2727 for reviewing this patch.
2011-02-19 23:01:40 +01:00
Johannes Schickel
3f8e860a23 MOHAWK: Adapt to setPalette RGBA->RGB change.
Currently in some places the RGBA palettes are converted to RGB before they are
set up. There might be a better way, but this should work fine for now.
2011-02-14 17:08:32 +01:00
Matthew Hoops
214d8f1e3e MOHAWK: Introduce a new CursorManager for LB v2+ (they do not use exe cursors)
svn-id: r55554
2011-01-26 19:13:53 +00:00
Alyssa Milburn
e97b2d25d1 MOHAWK: Allow DefaultCursorManager to use alternative tags
svn-id: r54987
2010-12-21 18:15:56 +00:00
Matthew Hoops
6a456a0e0e MOHAWK: Set Maggie's Farmyard Adventure as an LB game
The game will start, but has many problems as it uses a later version of the LB code. Also, make sure we check for filename being empty to stop an assertion in the MacCursorManager.

svn-id: r54566
2010-11-29 06:35:50 +00:00
Matthew Hoops
2d924afa9d MOHAWK: Add basic Living Books support (all credit goes to fuzzie!)
v1 and v3 (both Windows and Mac) are working, v1 support is in better shape.

svn-id: r54558
2010-11-28 22:55:15 +00:00
Matthew Hoops
07ea74d37b MOHAWK: Refactor cursor handling
Cursor handling has now been moved to a new CursorManager class (which is subclassed for Myst/Riven) from the GraphicsManager classes. This will be needed for Living Books which will have a class for Windows and Mac cursors (coming soon!).

svn-id: r54469
2010-11-25 04:49:11 +00:00