81443 Commits

Author SHA1 Message Date
Bastien Bouclet
bcd027cf64 MOHAWK: Riven: Fix use after free when using the trap book 2017-07-09 06:53:51 +02:00
Paul Gilbert
2b010ec6e3 TITANIC: Fix using hose first on nose 2017-07-08 21:44:12 -04:00
Paul Gilbert
f513194d1b TITANIC: Rename CDropTarget _showItem to _hideItem 2017-07-08 21:15:28 -04:00
Paul Gilbert
4b57eae3c3 TITANIC: Fix Doorbot timing in prologue service lift 2017-07-08 20:34:47 -04:00
Paul Gilbert
a20aa338c2 TITANIC: Show Vision Centre on bartop with pickup hand cursor 2017-07-08 17:24:28 -04:00
Paul Gilbert
558a409c00 TITANIC: Fix disappearing vision center on bar shelf 2017-07-08 16:27:05 -04:00
Thierry Crozat
1fb3624770 I18N: Update translations templates 2017-07-08 14:00:04 +02:00
Thierry Crozat
56757592bd SWORD1: Only write config in in-game menu when they are changed
The in-game menu contains not only subtitles and volume settings,
but also load and save game options. Every time the menu was opened
it would write the subtitles and audio volumes to the ConfMan
resulting in toggling on overriding global options for this game, which
was a but strange when it was previously using global options and we
only wanted to load a game. So now the settings are written to ConfMan
from the in-game menu only when they are actually changed.
2017-07-08 12:55:12 +01:00
Thierry Crozat
6ff927bff7 SWORD1: Use booleans for _systemVars speech and subtitles flags
The were defined as uint8 and the code was inconsistent in the
way they were handled, for example setting them to 1 in some
places and to true in others. It was working but relying on implicit
conversions both ways between 1 and true.
2017-07-08 12:55:11 +01:00
Colin Snover
f59269006c SCI32: Implement kShowStyle HShutterOut transition
This transition style was used when exiting the asteroids minigame
in PQ4, though it appears likely that this was an error in the
original game script since it does not actually do anything in the
context that it is used (neither here nor in the original
interpreter).

Still, this code is already written, and it fixes the crash, so in
it goes.

Fixes Trac#9856.
2017-07-07 23:42:30 -05:00
Colin Snover
9e90624052 SCI32: Add workarounds for PQ4 2017-07-07 23:41:53 -05:00
Paul Gilbert
562da310b8 TITANIC: Fix to only update modified parts of the screen 2017-07-07 20:55:12 -04:00
Thierry Crozat
8d7f0168ab I18N: Update translations templates 2017-07-08 01:44:18 +02:00
Thierry Crozat
6f5ccb8f43 SWORD1: Add thumbnail when saving from game panel
This fixes bug #9908 SWORD1: Picture previews black when
saving in game
2017-07-08 00:38:28 +01:00
Colin Snover
07d6ffd989 SCI32: Force General MIDI for games that support nothing else
* MGDX has only GM music;
* KQ7 1.x's AdLib data is incomplete, so is not usable even though
  it is partially there

Fixes Trac#9789.
2017-07-07 13:28:54 -05:00
Colin Snover
90cd56e4b6 SCI32: Fix missing music in MGDX
GM patch data is the same across all SCI32 games.
2017-07-07 13:25:02 -05:00
Colin Snover
f6dd8ad290 SCI: Fix audio_list debug command engine version info 2017-07-07 13:25:02 -05:00
Bastien Bouclet
a9a3089aa5 MOHAWK: Fix tMOV size computation not to use uninitialized memory 2017-07-07 19:44:18 +02:00
Bastien Bouclet
93c75a4680 MOHAWK: Fix computing the size of tMOV resources
When two entries in the file table shared the same data in the archive,
the resource size of the first entry was incorrectly set to zero.

Fixes #9905.
2017-07-07 19:39:23 +02:00
Timo Mikkolainen
dc913a31f8 I18N: Update translation (Finnish)
Currently translated at 100.0% (964 of 964 strings)
2017-07-07 15:29:53 +02:00
Ben Castricum
8384098515 I18N: Update translation (Dutch)
Currently translated at 100.0% (964 of 964 strings)
2017-07-07 11:49:26 +02:00
Lothar Serra Mari
928f77aa92 I18N: Update translation (German)
Currently translated at 99.8% (963 of 964 strings)
2017-07-07 11:06:48 +02:00
Paolo Bossi
9c7bd1f809 I18N: Update translation (Italian)
Currently translated at 100.0% (964 of 964 strings)
2017-07-07 11:06:31 +02:00
Colin Snover
065dd9671e SDL: Fix compilation with SDL1.2 2017-07-06 19:27:52 -05:00
Thierry Crozat
ae00f583a5 I18N: Update translations templates 2017-07-07 02:15:19 +02:00
Colin Snover
12d24d5b46 SCI32: Fix bad palette entries when built without USE_RGB_COLOR
This is only a problem for the Windows games that need some
palette entries to be ignored.
2017-07-06 19:12:40 -05:00
Colin Snover
3f0e061eaa SCI32: Refactor DuckPlayer to use common video playback code
This lets DuckPlayer support configurable black-lined video and
configurable high-quality scaling.
2017-07-06 19:12:39 -05:00
Colin Snover
f15f9e3b7c SCI32: Refactor Video32 code to reduce code & feature duplication 2017-07-06 19:12:39 -05:00
Colin Snover
71256a0d3c SCI32: Improve playback quality of SEQ videos 2017-07-06 19:12:39 -05:00
Colin Snover
7057f232d7 SCI32: Improve kPlayVMD rendering
1. Added a new game option for linear interpolation when scaling
   overlay-mode video in ScummVM builds with USE_RGB_COLOR;
2. Implemented SCI2.1-variant of the VMD player renderer (fixes
   Trac#9857), which bypasses the engine's normal rendering
   pipeline;
3. Improved accuracy of the SCI3-variant of the VMD player by
   writing HunkPalettes into the VMD's CelObjMem instead of
   submitting palettes directly to GfxPalette32.
2017-07-06 19:12:38 -05:00
Colin Snover
8cb35442c0 SCI32: Improve kShowMovieWin (AVI) rendering
1. Added a new game option for linear interpolation when scaling
   video in ScummVM builds with USE_RGB_COLOR;
2. 8bpp videos that put black in a palette index other than 0
   (KQ7) should now always render correctly without the earlier
   game-specific workarounds which did not work very well;
3. Data from game scripts regarding video size and position are
   now ignored, since games always just try to show videos in the
   middle of the screen, but frequently get this a little bit
   wrong, causing either bad aspect ratios or off-center videos;
4. Builds without USE_RGB_COLOR support will not crash when
   attempting to play >8bpp AVIs, like those from KQ7 2.00b.

Fixes Trac#9843, Trac#9762.
2017-07-06 19:12:38 -05:00
Colin Snover
e9bef89646 SCI32: Remove useless call
The show list is already cleared by showBits so it does not need to
be cleared a second time.
2017-07-06 19:12:38 -05:00
Colin Snover
2d6fe2b8cd SCI32: Work around bogus palette entries in select Windows games 2017-07-06 19:12:37 -05:00
Colin Snover
c6f5840196 SCI32: Remove magic numbers in HunkPalette 2017-07-06 19:12:37 -05:00
Colin Snover
f7fcce24e1 SCI32: Remove unused method declaration 2017-07-06 19:12:37 -05:00
Colin Snover
35346bc71b SCI32: Update mouse position for rendering in all frameOuts 2017-07-06 19:12:37 -05:00
Colin Snover
1466fb247e SCI32: Add workaround for SQ6 2017-07-06 19:12:36 -05:00
Colin Snover
798c6bf34d COMMON: Add yet another GUIO option flag
SCI engine has very many game options.
2017-07-06 19:12:36 -05:00
Colin Snover
7ce2e4cf08 GRAPHICS: Allow nearest neighbor scaling of 1Bpp and 2Bpp TransparentSurfaces
This is one small step toward allowing more shared usage of
existing scaling code.
2017-07-06 19:12:36 -05:00
Colin Snover
1fbee2f51e SCI32: Allow skipping SEQ animations
In SSCI, SEQ animations cannot be skipped.
2017-07-06 19:12:36 -05:00
Colin Snover
9f910535c9 SCI32: Centralise OSystem screen updates 2017-07-06 19:12:35 -05:00
Colin Snover
f40ea8c2e7 SCI32: Stop setting unused palette timestamp property 2017-07-06 19:12:35 -05:00
Colin Snover
a689fee663 SCI32: Speed up & deduplicate palette submission code 2017-07-06 19:12:35 -05:00
Colin Snover
332fabcb8a SDL: Only recreate SDL2 window when necessary
Destroying and recreating the SDL window whenever the video mode
changes in SDL2 is not necessary and causes several problems:

1. In windowed mode, the game window shifts position;
2. In fullscreen mode in macOS, every time the window is
   recreated, it causes the OS to play its switch-to-fullscreen
   animation again and emit system alert noises;
3. The window content flickers; and
4. The engine loses events from the old destroyed window.

This patch changes the SDL backend code to avoid destroying and
recreating the SDL window when using SDL2, except when switching
OpenGL modes, since there is no way to change the OpenGL feature
of a window.

There are still some outstanding issues with OpenGL where window
size ends up getting reset even though the user has resized it;
this will probably need to be addressed at some point in another
patch.

Thanks to @bgK and @criezy for their feedback which made this
patch much better.

Co-Authored-By: Bastien Bouclet <bastien.bouclet@gmail.com>
2017-07-06 19:11:54 -05:00
Paul Gilbert
6d37e1e88c TITANIC: Fix Arboretum Winter view enter animation 2017-07-06 18:24:23 -04:00
Paul Gilbert
11bb59a08f TITANIC: Fix NPC conversation crash 2017-07-06 16:33:45 -04:00
Paul Gilbert
e04815f932 TITANIC: Mark a few more sound playbacks as speech 2017-07-06 15:31:07 -04:00
Paul Gilbert
5e3ad4b236 TITANIC: Fix ship announcements with no content 2017-07-06 11:34:20 -04:00
Paul Gilbert
6044ba16ce TITANIC: Added sound command to debugger 2017-07-06 11:07:55 -04:00
Paul Gilbert
0b18b0b1b5 TITANIC: Fix crash clicking on MissiveOMat login prompt 2017-07-06 08:48:54 -04:00