Cameron Cawley
28d7b361ea
COMMON: Move more file format code into common/formats
2022-12-11 22:33:23 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Bastien Bouclet
1d731aeef9
MOHAWK: Simplify retrieving game features
2020-03-28 07:38:39 +01:00
Cameron Cawley
532f382602
MOHAWK: Unify Windows cursor managers
2020-01-11 17:34:12 +02:00
Cameron Cawley
b8e94e1acd
COMMON: Rename PEResources::getNameList() to getIDList()
2020-01-11 17:34:12 +02:00
Cameron Cawley
948c555ea6
ALL: Create all instances of NEResources and PEResources using new instead of on the stack
...
Also adapted WinCursorGroup and MacMenu to reflect this.
2020-01-11 17:34:12 +02:00
Michael Ball
44b607a052
MOHAWK: RIVEN: Modify cursor preloading to resolve crashing on 3DS
...
Common::PEResources being allocated on the stack was causing a stack overflow. ScummVM is configured to have 256kb of stack memory on the 3DS.
2019-10-12 21:47:20 +02:00
Cameron Cawley
fe5dddf901
GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor
2019-08-09 23:58:32 +03:00
Cameron Cawley
8c2b09d919
COMMON: Replace NEResourceType and PEResourceType with a shared enum
2019-05-01 23:52:56 +03:00
Bastien Bouclet
84b2dc5cc8
MOHAWK: Fix some clang-tidy warnings
2018-03-31 13:36:09 +02:00
Bastien Bouclet
9ac98d0fc9
MOHAWK: Myst: Always update the screen during the gameloop
2017-07-22 20:38:56 +02:00
Bastien Bouclet
b9a72ff7a6
MOHAWK: Preload all the PE cursors on startup
...
We were previously reloading the current cursor from raw data on each
frame.
2017-07-03 08:50:10 +02:00
Bastien Bouclet
f56f91af16
MOHAWK: Fix transparency for the rotation cursors in Myst
2016-12-11 09:52:09 +01:00
Bastien Bouclet
9a2fdf96ad
MOHAWK: Use the color of the first pixel as the transparent cursor color
...
Fixes #9568
2016-09-25 10:00:54 +02:00
Bastien Bouclet
3391c726cf
MOHAWK: Remap bitmaps not to use undefined colors
...
The Spanish version of Myst has bitmaps that use palette indices in the system
reserved range. Affected pixels previously used colors from the Windows system
palette instead of the bitmap's own palette, resulting in visual glitches.
Bitmaps are now remapped to the screen palette which is made of the Windows
reserved palette and part of the bitmap palette. The original engine used GDI's
StretchDIBits with DIB_RGB_COLORS to achieve the same result.
Fixes #7153 .
2016-06-26 08:37:07 +02:00
Matthew Hoops
a5992a08a0
MOHAWK: Run Myst in 8bpp
2015-04-11 14:37:17 -04:00
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