926 Commits

Author SHA1 Message Date
Colin Snover
51329c0dc6 ALL: Fix misuse of comma operator 2017-11-10 09:57:03 -06:00
Bastien Bouclet
bd82345f0b Merge pull request #1035 from bgK/require-64bits-integers
BUILD: Require 64bits integers
2017-10-25 19:17:11 +02:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Bastien Bouclet
fd19e2fc15 COMMON: Introduce a shared hash function for pointer types 2017-09-30 21:35:16 +02:00
Bastien Bouclet
55f46d3667 BUILD: Define pointer sized integer types and remove SCUMM_64BITS 2017-09-30 21:35:16 +02:00
Willem Jan Palenstijn
6a7d43288f DIRECTOR: Skip SearchMan detour in fallback detection 2017-09-20 20:53:14 +02:00
stevenhoefel
3feaaffd9c DIRECTOR: Fix Warning. 2017-09-14 13:54:52 +10:00
stevenhoefel
b674c5712c DIRECTOR: Initial work for D5 RTE Cast Member loading. 2017-09-14 13:08:57 +10:00
Eugene Sandulenko
4325605111 DIRECTOR: Lingo: Add missing break statement 2017-08-11 20:44:42 +02:00
D G Turner
b3c1ed66e4 DIRECTOR: Fix GCC Compiler Warnings. 2017-08-02 13:26:29 +01:00
Eugene Sandulenko
73c5c85210 DIRECTOR: Clarified STXT field names 2017-08-01 10:42:22 +02:00
Tobia Tesan
348edec176 DIRECTOR: Make 3-ary processEvent private 2017-07-05 08:35:33 +02:00
Tobia Tesan
2ae7d9f86b DIRECTOR: Handle kEventPrepareMovie with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
9ddb97b4ed DIRECTOR: Handle kEventExitFrame with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
7b675fc1de DIRECTOR: Handle kEventNone with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
8a6dce9fd3 DIRECTOR: Handle kEventIdle with 1-ary processEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
1d5c92783e DIRECTOR: Add processSpriteEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
fd310f1fd3 DIRECTOR: Move executeImmediateScripts to lingo.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
f1d2149db6 DIRECTOR: Include director/frame.h and sprite.h in lingo.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
9735fb06ca DIRECTOR: Move #define CHANNEL_COUNT to director.h 2017-07-05 08:35:33 +02:00
Tobia Tesan
265b0882f6 DIRECTOR: Use 1-ary processEvent call to start movie
Perahsp a specialized Lingo::start() would be better for clarity for
this single one?
2017-07-05 08:35:33 +02:00
Tobia Tesan
8a6ef727cf DIRECTOR: Add kEventStart case for processGenericEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
5a4942b6c5 DIRECTOR: Remove "primary event handler" comment
According to D4 manual only mouse/key/timeout event can have primary
handler
2017-07-05 08:35:33 +02:00
Tobia Tesan
3059c95abd DIRECTOR: Handle keyDown in 1-ary processEvent
Might change semantics by calling the standard chain for input events.

That is what the D4 docs suggest anyway.
2017-07-05 08:35:33 +02:00
Tobia Tesan
137e10eef2 DIRECTOR: Add kFrameScript call
This follows from D4 docs.

Changes semantics, *might* break stuff.
2017-07-05 08:35:33 +02:00
Tobia Tesan
0584f936dc DIRECTOR: Reorder processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
bfe3a316c4 DIRECTOR: Swap order of processEvent calls
This appears to be the correct order from docs and makes code easier to
reorder.

*Might* break stuff though.
2017-07-05 08:35:33 +02:00
Tobia Tesan
57dbfbf988 DIRECTOR: Call primaryEventHandler in processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
c267bc208f DIRECTOR: Handle kEventPrepareFrame in processFrameEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
963bc4a351 DIRECTOR: Move kEventMouseUp/Down handling to processInputEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
5a9a1571fa DIRECTOR: Include sprite.h in lingo-events.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
f9302e2c94 DIRECTOR: Handle frame enter/exit with 1-ary processEvent call 2017-07-05 08:35:33 +02:00
Tobia Tesan
ce3aaa08d0 DIRECTOR: Implement processFrameEvent 2017-07-05 08:35:33 +02:00
Tobia Tesan
38db7dfafe DIRECTOR: Add runMovieScript 2017-07-05 08:35:33 +02:00
Tobia Tesan
252c890bf5 DIRECTOR: Add Lingo::PrimaryEventHandler 2017-07-05 08:35:33 +02:00
Tobia Tesan
ed66169adf DIRECTOR: Include frame.h in lingo-events.cpp 2017-07-05 08:35:33 +02:00
Tobia Tesan
4f749fc007 DIRECTOR: Add Lingo::_dontPassEvent
I'm not sure whether this should go here or in Director.
I'm leaving it here because _dontPassEvent changes the semantics of event handling.
2017-07-05 08:35:33 +02:00
Eugene Sandulenko
bfd2b487eb DIRECTOR: Fix code formatting 2017-05-02 22:06:59 +02:00
Eugene Sandulenko
98f0006ad9 DIRECTOR: Reduce header dependency 2017-05-02 22:06:39 +02:00
Eugene Sandulenko
c750d17b0c DIRECTOR: Fix #include paths 2017-05-02 22:04:21 +02:00
Tobia Tesan
ca89722d57 DIRECTOR: Use CachedMacText for rendering 2017-05-02 21:01:23 +01:00
Tobia Tesan
bd7ded3f56 DIRECTOR: Add CachedMacText to TextCast 2017-05-02 21:01:23 +01:00
Tobia Tesan
415d9d660e DIRECTOR: Add CachedMacText 2017-05-02 21:01:23 +01:00
Tobia Tesan
d6f651064b DIRECTOR: Add TextCast::importStxt 2017-05-02 21:01:23 +01:00
Tobia Tesan
8b9e029c1e DIRECTOR: Remove now-useless textId parameter from renderButton 2017-05-02 21:01:23 +01:00
Tobia Tesan
61cd407405 DIRECTOR: Use text from textCasts 2017-05-02 21:01:23 +01:00
Tobia Tesan
84a65f9df0 DIRECTOR: Init textCasts with Stxts in Score 2017-05-02 21:01:23 +01:00
Tobia Tesan
bad6cc32ef DIRECTOR: Equip textCast with _ftext 2017-05-02 21:01:23 +01:00
Tobia Tesan
6a741a88c9 GRAPHICS: Pass interlinear as constructor argument to MacText 2017-05-02 21:01:23 +01:00
Tobia Tesan
4ae5453af8 DIRECTOR: Add stxt.cpp 2017-05-02 21:01:23 +01:00