Commit Graph

858 Commits

Author SHA1 Message Date
Johannes Schickel
60a6ce70c1 MOHAWK: Get rid of casts on CursorManager::replaceCursor calls. 2012-06-16 03:28:43 +02:00
Johannes Schickel
d214391431 MOHAWK: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:38:59 +02:00
Matthew Hoops
3324aef8d0 MOHAWK: Make sure we convert video surfaces if they're not in the screen format 2012-06-11 23:14:26 -04:00
Johannes Schickel
7c5cf1b400 GUI: Add helper to SaveLoadChooser, which uses the currently active target.
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel
5c8b7af495 MOHAWK: Do not call close on SaveLoadChooser.
This is actually always called when a dialog closes, thus manual closing is
not required. It furthermore is actually *bad* to call this from outside the
dialog's code, since it will remove the top dialog from the dialog stack and
thus mess up the GUI in case multiple dialogs are opened.
2012-06-10 04:19:57 +02:00
Johannes Schickel
15046a7529 GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +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
d67f9b89f2 MOHAWK: Use video volume control in Riven 2012-05-28 14:05:17 -04:00
Matthew Hoops
b253a05454 GRAPHICS: Hide the WinCursor implementation 2012-05-14 09:56:56 -04:00
Matthew Hoops
9e330174c8 VIDEO: Change getElapsedTime() into getTime()
This name change accompanies a slight meaning change; now it means the current time position from the beginning of the video and not from starting the video.
2012-05-12 21:28:13 -04:00
Matthew Hoops
8e107f8c78 MOHAWK: Enable the SVQ1 intro for Myst ME Mac 2012-04-08 03:29:53 +01:00
Matthew Hoops
765a870445 GRAPHICS: Convert JPEG to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
4516b5ea24 GRAPHICS: Convert PictDecoder to the ImageDecoder API 2012-03-20 01:06:48 +01:00
Matthew Hoops
270f8077c2 MOHAWK: Make MystBitmap use BitmapDecoder 2012-03-20 01:06:47 +01:00
Matthew Hoops
29f7cc33fb MOHAWK: Use Surface::convertTo() for video 8bpp->true color conversion 2012-03-20 01:06:47 +01:00
Matthew Hoops
4bdd38923a MOHAWK: Properly initialize the Riven tdomeelev variable
Thanks to Robot_Maker20 for noticing the bug
2012-03-19 11:03:38 -04:00
Matthew Hoops
5ae2543795 MOHAWK: Disable Riven demo save/load GUI buttons 2012-03-16 16:16:25 -04:00
Matthew Hoops
2f6528933d MOHAWK: Improve Riven save/load error messages 2012-03-16 16:03:14 -04:00
Christoph Mallon
d21cef4117 JANITORIAL: Avoid the ugly operator invocation syntax. 2012-03-13 15:43:23 +01:00
Matthew Hoops
5e52b0a5d4 MOHAWK: Split the graphics classes into their own files 2012-03-10 13:55:08 -05:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
D G Turner
8c5f988a00 MOHAWK: Correct detection md5sum for Tortoise and the Hare Hebrew.
md5sum was for datafiles modified by bug submitter to access hidden
content. New md5sum is for unmodified standard release.
2012-02-16 20:57:52 +00:00
D G Turner
910e93db40 MOHAWK: Add Detection Entry for "Tortoise and the Hare" Hebrew Variant.
Parameter from bug #3441928 - "MOHAWK: Hebrew Tortoise and Hare not
detected".
2012-02-16 00:57:18 +00:00
D G Turner
8103d57d37 MOHAWK: Add Detection Entries For 3 LB Mac Games.
Parameters taken from bug #3461368 - "MOHAWK: Living Books Mac
Versions Not Recognized".
2012-02-15 17:36:58 +00:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Max Horn
658080deed ALL: Avoid using is* macros from ctype.h
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Willem Jan Palenstijn
07904c881b MOHAWK: Avoid warning 2012-02-11 23:05:43 +01:00
Matthew Hoops
8a22c2d65e MOHAWK: Add another lilmonster demo 2011-12-19 19:06:57 -05:00
Andrea Corna
a6ec4f70da COMMON: Make more members of Archive constant. 2011-12-13 17:55:57 +01:00
Bastien Bouclet
b04af6dc31 MOHAWK: Display the weight up after resetting the clock puzzle in Myst ME 2011-12-12 19:29:26 +01:00
Matthew Hoops
d1628feb76 MOHAWK: Fix Myst ME Mac picture file names 2011-12-12 12:28:49 -05:00
Matthew Hoops
8cd55a11a0 MOHAWK: Fix Stoneship's hologram projector 2011-12-12 12:28:48 -05:00
Alyssa Milburn
99d3b7b5c3 MOHAWK: Stub LB clone command. 2011-12-08 23:23:35 +01:00
Alyssa Milburn
64c5a12d60 MOHAWK: Fix LBCode goto notify. 2011-12-08 23:18:08 +01:00
Alyssa Milburn
ef22475988 MOHAWK: Implement LB getProperty/setProperty. 2011-12-08 23:15:48 +01:00
Alyssa Milburn
0d71aa7969 MOHAWK: LB variables are case-insensitive. 2011-12-08 23:12:53 +01:00
Alyssa Milburn
0db0bf4504 MOHAWK: Name the LB phases, and default to kLBPhaseLoad for v3+. 2011-12-08 23:08:34 +01:00
Alyssa Milburn
3be628735b MOHAWK: Implement LB exec,return. 2011-12-02 00:06:58 +01:00
Alyssa Milburn
2657d14636 MOHAWK: Implement LB add,addAt,setAt. 2011-12-02 00:05:45 +01:00
Alyssa Milburn
82ff40c548 MOHAWK: Implement LBCode::itemIsLoaded. 2011-12-02 00:03:01 +01:00
Alyssa Milburn
9b00b3d5b7 MOHAWK: LB list improvements, implement &= operator. 2011-12-02 00:01:06 +01:00
Alyssa Milburn
446822369b MOHAWK: Implement LB move/moveTo. 2011-12-01 23:59:15 +01:00
Alyssa Milburn
43d6d49e2e MOHAWK: Handle LB conversion from string to point/rect. 2011-12-01 23:55:40 +01:00
Alyssa Milburn
3a2bd43c75 MOHAWK: Fix kLBOpBreakExpression. 2011-12-01 23:54:48 +01:00
Alyssa Milburn
3553e58bb0 MOHAWK: Run LB load-time scripts properly. 2011-12-01 23:54:18 +01:00
Alyssa Milburn
553d32a818 MOHAWK: Implement LBCode::cmdMousePos. 2011-12-01 23:52:47 +01:00
Alyssa Milburn
d015a37e00 MOHAWK: Fix parameterless calls when parsing LB scripts. 2011-12-01 23:51:52 +01:00
Alyssa Milburn
1e9ea08495 MOHAWK: Fix LBCode seek/seekToFrame. 2011-11-27 21:02:13 +01:00