Commit Graph
137148 Commits
Author SHA1 Message Date
Paul Gilbert 4c777a9afc XEEN: Separation of scene indoors & outdoors drawing 2017-12-07 22:13:35 -05:00
Paul Gilbert 9d85901c43 XEEN: Fixes for outdoor map drawing 2017-12-07 20:59:05 -05:00
stevenew 707182255a I18N: Update translation (Danish)
Currently translated at 100.0% (960 of 960 strings)
2017-12-07 20:59:51 +01:00
Bastien Bouclet 11cce71b06 GRIM: Fix warning due to the hash value now being unsigned 2017-12-07 19:24:17 +01:00
Bastien Bouclet 4dca903dc0 ANDROID: Fix build 2017-12-07 19:11:02 +01:00
Tarek Soliman e9a2b7d898 MAEMO: Update host_alias 2017-12-07 01:05:11 -06:00
Paul Gilbert b907ccce96 XEEN: Rename InterfaceMap class to InterfaceScene
This is avoid confusion with the minimap and map dialog classes
2017-12-06 21:50:30 -05:00
Paul Gilbert e400695ae6 XEEN: Further fixes for map rendering 2017-12-06 21:36:10 -05:00
stevenew e06d649570 I18N: Update translation (Danish)
Currently translated at 95.1% (913 of 960 strings)
2017-12-07 02:38:53 +01:00
Paul Gilbert 695df4db36 XEEN: Lots of constants added to minimap code 2017-12-06 20:38:43 -05:00
Bastien Bouclet b70686550c GRIM: Remove references to SCUMM_64BITS 2017-12-06 22:41:24 +01:00
Bastien Bouclet 198c376dcb MACOSX: Add missing file for mac builds 2017-12-06 22:01:52 +01:00
Bastien Bouclet e105e6340e GRIM: Use 64bit integers for the save/restore code
To remove usage of the now removed SCUMM_64BITS definition
2017-12-06 21:41:23 +01:00
Bastien Bouclet 3ec01653c3 ALL: Merge from ScummVM rev 3a933138ce 2017-12-06 21:41:03 +01:00
rootfather 104aaffd22 NEWS: Add release dates to the NEWS files 2017-12-06 12:19:37 +01:00
Paul Gilbert 586444a0c5 XEEN: Cleanup of the map dialog class 2017-12-05 22:24:15 -05:00
Paul Gilbert 9381f423df XEEN: Split drawing minimap indoors & outdoors into separate methods 2017-12-05 19:53:16 -05:00
stevenew a2b77df076 I18N: Update translation (Danish)
Currently translated at 90.0% (864 of 960 strings)
2017-12-05 22:21:44 +01:00
Paul Gilbert e98d9f9016 XEEN: Replacing numbers with surface type enum in minimap 2017-12-04 20:33:05 -05:00
Paul Gilbert 61e1ee7f04 XEEN: Split the minimap code into it's own file 2017-12-04 19:45:04 -05:00
Paul Gilbert 2c2c328dfc XEEN: Fix ground tile rendering in automap dialog 2017-12-04 07:23:07 -05:00
Thierry Crozat 71ff55ee65 I18N: Regenerate translations data file 2017-12-04 05:05:02 +01:00
Paul Gilbert 341c6a95e3 XEEN: Fix Coverity warnings 2017-12-03 21:58:36 -05:00
Paul Gilbert 9ba9265583 XEEN: Fix empty patch in automap dialog contents 2017-12-03 21:42:22 -05:00
Colin Snover a5bc89102e ALL: Remove obsolete register keyword
The register keyword was deprecated from the C++11 standard,
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4193.html#809>,
and removed from the C++17 standard,
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4340>, so
cannot exist in a well-formed C++17 program.

It has never done anything in GCC
<https://gcc.gnu.org/ml/gcc/2010-05/msg00113.html>
and because of the way it is specified in the standard, it is “as
meaningful as whitespace”
<http://www.drdobbs.com/keywords-that-arent-or-comments-by-anoth/184403859>.

The one remaining use of the register keyword is in the DS backend,
where it is used to create a local register variable using the
non-standard GCC Extended Asm feature.

Closes gh-1079.
2017-12-03 20:27:42 -06:00
Thierry Crozat ef33d8a2fb I18N: Update translations templates 2017-12-04 03:26:53 +01:00
Colin Snover d087c9605f BASE: Remove bad casts between incompatible Plugin types
Previously, a C-style cast was used to convert a
Common::Array<Plugin *>, populated with pointers to StaticPlugin
and DynamicPlugin instances, to a
Common::Array<PluginSubclass<T> *>, but PluginSubclass<T> is a
*sibling* class to StaticPlugin/DynamicPlugin, so this cast was
invalid and the results undefined. The methods for retrieving
subclasses of plugins can't be easily changed to just generate an
array of temporary wrapper objects that expose an identical API
which dereferences to the preferred PluginObject subclass because
pointers to these objects are retained by other parts of ScummVM,
so the wrappers would needed to be persisted or they would need to
just re-expose the underlying Plugin object again. This indicated
that a way to solve this problem is to have the callers receive
Plugin objects and get the PluginObject from the Plugin by
explicitly stating their desired type, in a similar manner to
std::get(std::variant), so that the pattern used by this patch to
solve the problem.

Closes gh-1051.
2017-12-03 20:26:38 -06:00
Paul Gilbert 55855cab83 XEEN: Fix drawing outer frame for automap dialog 2017-12-03 20:57:56 -05:00
Paul Gilbert e8fb9920a9 XEEN: Cleanup of window opening & closing 2017-12-03 20:08:11 -05:00
Eugene Sandulenko 20fb25d58a FULLPIPE: Renames in ExCommand 2017-12-03 23:04:58 +01:00
Eugene Sandulenko 26747d0400 FULLPIPE: Added more debug output to the class loading 2017-12-03 23:04:58 +01:00
Thierry Crozat 8b1488ab63 I18N: Update translations templates 2017-12-03 19:35:07 +01:00
Colin Snover 20b2c1b7e1 SDL: Fix memory corruption when switching to/from 32-bit cursors
When a 32-bit cursor has the same size as an 8- or 16-bit cursor,
the mouse surfaces were not being regenerated even though the
32-bit cursors have a different memory requirement. This lead to
memory corruption as an inappropriate surface would be used for
the other type of cursor.

The shoe-horned 32-bit cursor support is clearly showing its
scrappy nature here and probably ought to be revisited in the
future if the SurfaceSdl graphics manager sticks around.

Fixes Trac#10349, Trac#10350, Trac#10351.
2017-12-03 12:33:05 -06:00
Paul Gilbert 4fbf11db90 GRAPHICS: Fix ManagedSurface clear calls when no surface is set 2017-12-03 13:10:41 -05:00
Willem Jan Palenstijn 3a933138ce SCI: Avoid buffer overflow in amigamac sound driver
By default, frac_t is interpreted as signed. The resulting range isn't
large enough to store offsets, so we interpret it as unsigned here
instead. Fixes a crash in QfG1/Mac where instrument->loop_size is 49457.
2017-12-03 12:49:11 +01:00
rsn8887 c78fa86860 PSP2: fix clipping and display quality for odd resolutions (Phantasmagoria) 2017-12-02 13:00:22 -06:00
rsn8887 d73437c293 PSP2: fix odd resolutions on PSP2, fixes Phantasmagoria 2017-12-02 11:53:23 -06:00
rsn8887 98147a6c08 PSP2: fix building with latest SDL2 for Vita 2017-12-02 05:31:31 -06:00
Thierry Crozat 088b17592c I18N: Update translations templates 2017-12-02 02:43:24 +01:00
Colin Snover 5c855a0a5a BACKENDS: Fix shake position getting stuck
If a game is doing a screen shake (for example, DOTT when the
stereo is on), and the user does an RTL, the screen shake offset
may get stuck if the engine does not reset it on shutdown. To
avoid this in all cases, just always reset the screen shake
whenever the graphics manager is told to switch to a new graphics
mode.
2017-12-01 19:43:12 -06:00
Colin Snover 4d3f05ae79 SCUMM: Fix array overflow writing var when no current script is set
This situation is triggered normally when _currentScript is 0xFF,
but it could potentially also happen if _currentScript is some
other number >= NUM_SCRIPT_SLOT, so the check is a bit more
conservative than it might appear to need to be.
2017-12-01 19:39:30 -06:00
Colin Snover 2b5605362a SCUMM: Fix signed integer overflow reading default v70HE cursor 2017-12-01 19:23:00 -06:00
Colin Snover c7989bb333 SCUMM: Fix buffer overflow reading default v70HE cursor 2017-12-01 19:22:56 -06:00
Colin Snover 5cd2c9a387 SCUMM: Fix possible return of garbage values 2017-12-01 19:22:52 -06:00
Colin Snover 57084b4a1b SCUMM: Fix UB shifting negative integers in Actor 2017-12-01 19:22:35 -06:00
Colin Snover 1871c7dfea AUDIO: Fix UB shift of negative integer in AdLib driver 2017-12-01 19:22:31 -06:00
Colin Snover 02614f2f1a COMMON: Fix UB shifting negative integers
Compilers optimise these back into shifts on architectures where
shifts of negative integers work the same as mul/div, so this
solves the UB without actually causing any performance issue.
2017-12-01 19:22:24 -06:00
Colin Snover 9a36870e78 SCUMM HE: Fix UB shifting negative integers 2017-12-01 19:22:19 -06:00
Colin Snover 57db3f7535 SCI: Partially clean up SCI16 video playback code 2017-12-01 18:48:35 -06:00
TomasM f9f5692e03 I18N: Update translation (Spanish)
Currently translated at 100.0% (960 of 960 strings)
2017-12-02 00:54:12 +01:00