Commit Graph
7005 Commits
Author SHA1 Message Date
Bastien Bouclet 6a34e5553d GRAPHICS: Fix legacy OpenGL surface renderer incorrect y coordinates
Fixes #1360.
2017-09-19 06:11:09 +02:00
Bastien Bouclet 020e09bce6 STARK: Set the sound type for Bink and Smacker movies 2017-09-03 15:50:38 +02:00
Bastien Bouclet eff56897ea MYST3: Set the sound type for Bink movies 2017-09-03 15:50:15 +02:00
Bastien Bouclet fc67541742 ALL: Silence some GCC7 fall through warnings 2017-09-02 15:24:01 +02:00
Bastien Bouclet e4a719d744 AUDIO: Remove the MT32 emulator
It's not used in ResidualVM and it's a pain to merge
2017-09-02 15:17:52 +02:00
Bastien Bouclet 84e62b6c8d ALL: Sync with ScummVM - rev. 87ebc7140c 2017-09-02 15:04:07 +02:00
Bastien Bouclet 0a212398b3 ALL: Update the years for 2017 2017-09-02 11:16:09 +02:00
Bastien Bouclet 1dd5ab650b NEWS: Add some more entries for Myst III 2017-09-02 11:09:17 +02:00
Bastien Bouclet 5d490eed92 MYST3: Clear the screen early in the initialization
Avoids drawing a frame of garbage when the debug console updates the
screen ia bit later (for some reason).
2017-09-02 07:45:37 +02:00
Bastien Bouclet 7a11ff2006 SDL: Keep the same window between the launcher and the engines 2017-09-01 09:28:09 +02:00
Bastien Bouclet 9ad31268fa MYST3: Use the main event loop for simple movies 2017-09-01 09:26:57 +02:00
Bastien Bouclet 13ff072254 STARK: Implement fullscreen toggling 2017-09-01 09:26:57 +02:00
Bastien Bouclet 125ccf3b4d MYST3: Implement fullscreen toggling 2017-09-01 09:26:57 +02:00
Bastien Bouclet f4e3bd0424 GRIM: Take adventage of kFeatureFullscreenToggleKeepsContext 2017-09-01 09:26:57 +02:00
Bastien Bouclet be5a139ce5 SDL: Implement kFeatureFullscreenToggleKeepsContext in surface SDL2 2017-09-01 09:26:40 +02:00
Bastien Bouclet 6d8568d056 SDL: Implement kFeatureFullscreenToggleKeepsContext in OpenGL with SDL2 2017-09-01 09:25:02 +02:00
Bastien Bouclet 9dd157afe8 SDL: Import the SDL window changes from ScummVM 2017-08-28 21:46:42 +02:00
Bastien Bouclet 9214605e13 COMMON: Add a feature flag for toggling fullscreen keeping the same GFX context 2017-08-28 21:46:42 +02:00
Bastien Bouclet d645bbcefd OPENGL: Clean up the overlay pixel format code 2017-08-28 21:46:02 +02:00
Bastien Bouclet 9853d26344 GRIM: Fix playing bink videos in the demo version of EMI
The OpenGL renderers would choke because the pixel format of the screen
was being used instead of the expected one.
2017-08-25 21:24:16 +02:00
Bastien Bouclet abd8c585f7 STARK: Change surface data to always be in the RGBA byte order
This eases uploading the textures to OpenGL, and will hopefully fix
endianness issues.
2017-08-20 16:06:36 +02:00
Bastien Bouclet b97e49c3ee MYST3: Change surface data to always be in the RGBA byte order
This eases uploading the textures to OpenGL, and will hopefully fix
endianness issues.
2017-08-20 09:36:31 +02:00
Bastien Bouclet 6aee542a1d MYST3: Cache the value of the water effect parameters
Improves the speed of the water effect update.
2017-08-19 23:11:46 +02:00
Bastien Bouclet 142b914eb5 MYST3: Fix some transitions after movies using the wrong source image
Fixes #1353.
2017-08-19 18:10:22 +02:00
Bastien Bouclet 6708f19a50 GRIM: Fix invalid ADGF_DEMO flag usage 2017-07-26 20:12:35 +02:00
Bastien Bouclet 23846a2e0f GRIM: Mark EMI as unstable 2017-07-26 20:12:35 +02:00
Bastien Bouclet a74aaf22a7 STARK: Mark TLJ as unstable 2017-07-26 20:12:35 +02:00
Bastien Bouclet 44d7e7cc1a STARK: Remove unneeded detector flags 2017-07-26 20:12:35 +02:00
Vincent Pelletier 58ff5bd79a ANDROID: Limit mixer output sample rate
Fixes
  rate effect can only handle rates < 131072
error for example when starting grim intro video.
2017-07-20 11:25:44 +09:00
Vincent Pelletier bcd1066540 TINYGL: Move initialisation code outside of loop
Readability-only change.
Clarifies that these variables will be initialised before they get
accessed in the loop.
Also, initialise update_left and update_right to true, and only clear the
one needed for given triangle.
2017-07-20 01:56:35 +00:00
Vincent Pelletier 218d3214d7 TINYGL: Move remaining line counter decrement near y increment
Readability-only change.
Both represent the same notion, and nb_lines is only accessed as loop
condition.
2017-07-20 01:53:34 +00:00
Vincent Pelletier a6af3a38a3 TINYGL: Fix vertice color when clipped and lighting is disabled
longcurrent_color is assigned per vertex, but it is not saved on each
vertex on creation (unlike their "color" attribute, used when lighting
is enabled).
As a consequence, and because rendering happens asynchronously (rather,
following the draw call queue managed by zdirtyrect.cpp when requested
to flip current buffer), longcurrent_color at clipping time can be
different to the one at vertex declaration time, causing color artifacts.

The effect is most noticeable in EMI set shi, in the grog dispenser +
shipyard manager closeup angle, when Guybrush exits the screen by
crossing its right border: dark triangles become visible on his face.

Instead, always use the color attribute, which is already properly
initialised on vertex creation.
2017-07-20 01:51:07 +00:00
Vincent Pelletier 92130c138e TINYGL: Obey current shade model also when clipping lines.
The code was only interpolating color (in TGL_SMOOTH mode) when clipping
faces, extend it to lines.
Also, factorise color interpolation code.
No visual difference is expected in normal use, but it fixes wireframe
rendering when used for debugging.
2017-07-20 01:48:58 +00:00
Bastien Bouclet 3ec5f050ce MYST3: Refresh the ambient sounds when running playMovieChangeNode
Fixes #1337, Fixes #1350.
2017-07-19 06:54:45 +02:00
Bastien Bouclet aae13839c0 COMMON: Write the remaining iconv conversion state to the output buffer
Fixes the Myst III Hebrew subtitles sometime missing their last character
2017-06-21 21:50:07 +02:00
Bastien Bouclet e29c7ded48 MYST3: Add minimal BiDi processing for the Hebrew version
Fixes rendering the subtitles from right to left
2017-06-20 14:03:55 +02:00
Bastien Bouclet c6e11c3691 MYST3: Switch file misc metadata to a Common::Array
Should fix failure to load one of the files in the Hebrew version,
as seen in bug #1348
2017-06-20 14:01:44 +02:00
Bastien Bouclet c197adfa46 MYST3: Force the Hebrew subtitles to use the cp1255 encoding 2017-06-16 19:00:49 +02:00
Bastien Bouclet 2f7bb9228a MYST3: Add a subtitle font mapping for the Hebrew version
It's unknown what font the "Arial2" font face actually is.
Users should provide a font with Hebrew glyphs as "hebrew.ttf".
2017-06-14 21:46:29 +02:00
Bastien Bouclet 86eec523ba STARK: Store ResidualVM specific metadata and a thumbnail in saves 2017-06-14 21:46:29 +02:00
Bastien Bouclet 3dab2b5d95 MYST3: Fix incorrect Hebrew language file name 2017-06-14 08:41:27 +02:00
Bastien Bouclet 68cf4e929f MYST3: Also load the menu language file for the Hebrew version 2017-06-14 07:38:11 +02:00
Bastien Bouclet 9cb43c21f5 MYST3: Add detection for the Hebrew version
Refs #1348.
2017-06-14 07:17:05 +02:00
Bastien Bouclet 7a51568622 STARK: Use mirror repeat texture mapping for actors
Some models have texture coordinates which are not normalized and expect
mirror repeat mapping. Ex :
- Invisible April
- The Vanguard standing in front of the Border house
2017-06-12 17:39:31 +02:00
Bastien Bouclet 48c4a488b6 STARK: Clear the dialog options when resetting the dialog player
Fixes loading a game while dialog options are visible
2017-06-11 21:46:33 +02:00
Bastien Bouclet 2682f75b16 STARK: Support AnimHierarchies referencing each other more than one level
Fixes April being invisible after floating over the gorge in Alais
2017-06-11 21:45:09 +02:00
Bastien Bouclet c08e0f5f1d STARK: Prevent segfault when the walk destination is not on the walkmesh 2017-06-10 14:35:53 +02:00
Bastien Bouclet a2982b98fa STARK: Use an easier to understand variant of the triangle contains point code
This new version is slightly less optimized. Also don't accidentally use
double precision math.
2017-06-10 14:35:53 +02:00
Bastien Bouclet 4ead07f669 STARK: Skip degenerate faces when searching for faces containing a point 2017-06-10 14:35:53 +02:00
Bastien Bouclet d287dc93d8 STARK: When unable to find which floor face contains an item, keep the previous value
Works around draw order glitches due to items not having a floor face
2017-06-10 14:35:53 +02:00