Commit Graph

101539 Commits

Author SHA1 Message Date
sluicebox
9f6b266049 SCI: Fix SCI1.1 view displacement scaling
Fixes negative displacements being scaled to the wrong value, causing
views to be drawn at the wrong location.

Example: LB2 floppy Act 3 room 430 scaled O'Riley's x displacement
to -2 instead of -1, placing him one pixel too far to the left.

Confirmed in disassembly that this calculation is a signed divide
and not an unsigned shift.
2024-07-05 16:21:20 -07:00
sluicebox
3bc4378e25 SCI: Fix SCI1.1 scaling inaccuracies
Fixes the pigeon flight in Pepper's Adventures in Time.

The pigeon view is scaled down to one pixel but the scaling code was
incorrectly producing an empty table for certain inputs. Other scaling
inaccuracies were identified and fixed too.

Fixes bug #15222
2024-07-05 14:39:36 -07:00
AndywinXp
98f242a7b7 SCUMM: SPYFOX3: Fix unreadable numbers in minigame
This closes ticket #6712:
"SCUMM/HE: SPYFOX3 - Text drawing
glitch in "Radioactive Trash Collector""

HE100 (and a very late version of HE99) uses different
flags for drawBox color modes. Incidentally, the target
color (light gray) used for the background on which
text is rendered managed to trigger a different mode,
hence the text never being removed.
2024-07-05 23:36:46 +02:00
Walter Agazzi
a504bbb885 AGS: Add detection entries for various games
From AGS forums / itch.io
Fix #15246
2024-07-05 22:38:13 +02:00
sluicebox
cb0db51091 AGI: Fix closing window when overlapping with menu
Fixes out of bounds memory access when closing a window that overlaps
with the menu bar at the top of the screen. This crashed at least some
release builds, including Windows release 2.8.1.

Mixed-Up Mother Goose is the only game known to draw a text window over
the menu bar. When I recently added support for this, I missed that the
code for closing the window needed to be updated too:
bc8550ce02

Fixes bug #15241

Big thanks to @hugoarpin for reporting this and testing the fix.
2024-07-05 09:55:51 -07:00
athrxx
94bb74000f KYRA: (LOK) - minor text speed fix adjustment
(ignore chat text display duration when speech is enabled)
2024-07-05 14:39:42 +02:00
athrxx
905ee76654 SCI: minor mouse precision fix for Hercules mode
The translation of the mouse coords shoud now mirror the scaling of the
graphics more precisely. The change is too minor to notice ingame, though.
2024-07-05 14:08:57 +02:00
Alexander Korotkov
fd97ca71f0 KYRA: LoK - Fix chat duration
When both subtitles and voice are enabled use voice duration as in
the original game.
2024-07-05 14:08:18 +02:00
Filippos Karapetis
494ec37f20 DGDS: Disable multiple MIDI player instances for music + SFX
Simultaneous MIDI players aren't supported by the backend.
MIDI sound effects are deactivated for now, till this
functionality is implemented properly with a single instance
2024-07-05 10:22:22 +03:00
elasota
39bcf1a69a VCRUISE: Add preload sounds option 2024-07-05 01:37:16 -04:00
elasota
8eb323644d MTROPOLIS: Resolve str2num failures to 0 and warn instead 2024-07-04 22:14:01 -04:00
elasota
d13568b185 MTROPOLIS: Sink invalid attrib writes that are documented as allowed in 1.x 2024-07-04 21:40:35 -04:00
elasota
dbc4579e3b MTROPOLIS: Fix media cue modifier not cloning correctly
Fixes crash in the Bureau maze in Obsidian
2024-07-04 21:37:08 -04:00
elasota
299b98089b MTROPOLIS: Improve vthread stack debug 2024-07-04 20:39:53 -04:00
elasota
42e2c4c242 MTROPOLIS: Add nthelement and elementindex attribs 2024-07-04 19:48:33 -04:00
elasota
35d89b254b MTROPOLIS: Permit list expansion 2024-07-04 19:34:40 -04:00
elasota
82a25bb271 MTROPOLIS: Remove errant debug code 2024-07-04 18:43:37 -04:00
elasota
d22b49fb05 MTROPOLIS: Add more attribs to SysInfo 2024-07-04 18:42:58 -04:00
elasota
bba278db34 MTROPOLIS: Instantiate aliases before putting them in the modifier inner scope 2024-07-04 18:42:36 -04:00
elasota
a19065c255 MTROPOLIS: Move Fade modifier to standard plug-in 2024-07-04 17:46:11 -04:00
elasota
818b0bc618 MTROPOLIS: Coerce vector sources for Vector Motion Modifier instead of check
This is necessary since they are now correctly receiving the var reference instead of a raw vector value
2024-07-04 15:56:20 -04:00
elasota
e7fbd26afa MTROPOLIS: Produce a reference to the var instead of the var contents from var ref sources 2024-07-04 15:56:20 -04:00
elasota
9d16f99f1b MTROPOLIS: Fix missing linkInternalReferences and visitInternalReferences in SaveAndRestoreModifier 2024-07-04 15:56:20 -04:00
elasota
e212224d1f MTROPOLIS: Permit var references to reference non-variable modifiers 2024-07-04 15:56:20 -04:00
Roland van Laar
744400a4a7 DIRECTOR: fix comparison int/uint warning 2024-07-04 13:30:06 +02:00
meekee7
6777f200f9
MTROPOLIS: add fallback palette to MovieElement blitting (#5811)
* MTROPOLIS: add fallback palette to MovieElement blitting

Without a palette, there would be assertions and nullptr segfaults
in Graphics::ManagedSurface::blitFromInner.
Observed in MindGym and The Day The World Broke

The palette content is not correct yet. Mind Gym renders the video
with the wrong colors.

* MTROPOLIS: use global palette as fallback for MovieElement
2024-07-03 14:54:47 -04:00
Matthew Duggan
0856bf2003 DGDS: Fix crash regression on some scene changes 2024-07-03 20:07:56 +10:00
Matthew Duggan
c3d4e88406 DGDS: Fix image parsing slightly
Fixes issues in images from Heart of China and Willy Beamish
2024-07-03 18:53:19 +10:00
Hubert Maier
452e438f69 JANITORIAL: Fix specfic typos in sound.h 2024-07-03 11:09:57 +03:00
Hubert Maier
9b68ebea3a JANITORIAL: Fix verison typo in saveload.cpp 2024-07-03 11:09:57 +03:00
Hubert Maier
e79648d2ae JANITORIAL: Fix noticably typo in midi.cpp 2024-07-03 11:09:57 +03:00
Hubert Maier
cda135cff0 JANITORIAL: Fix intrument typo in sound_midi.cpp 2024-07-03 11:09:22 +03:00
Hubert Maier
89a1aafb75 JANITORIAL: Fix didnt typo in saveload.cpp 2024-07-03 11:09:22 +03:00
Hubert Maier
4906420455 JANITORIAL: Fix succeded and bizzare typos in op_cmd.cpp 2024-07-03 11:09:22 +03:00
NabeelShabbir
7d14ef7cc0 SAGA: Add keymapper support 2024-07-03 09:58:37 +03:00
Filippos Karapetis
c5948672ff SCUMM: Fix compilation with MSVC 2024-07-03 03:02:13 +03:00
Matthew Duggan
3bf8584199 DGDS: Add missing terminator to detection entry 2024-07-03 09:19:45 +10:00
Matthew Duggan
ca0fe5567f DGDS: Fix ADS logic slightly
Skipping a nested IF previously executed the ELSE branch.  This could be
observed in the China intro sequence with too many scripts starting at once.
2024-07-03 09:12:09 +10:00
Matthew Duggan
a3c17eaa35 DGDS: Add Willy Beamish demo and fix to make it run 2024-07-03 09:12:09 +10:00
Filippos Karapetis
ac9ff4b607 Revert "GOB: fix overload in hotspots.cpp"
This reverts commit e1f2a52fe6.
The original change was a result of a false positive.
Check the discussion in PR #5889 for more information.
2024-07-03 01:18:48 +03:00
Filippos Karapetis
2f104415bf Revert "GOB: fix code overloads in map_v1.cpp"
This reverts commit b3061e0bc6.
The original change was a result of a false positive.
Check the discussion in PR #5889 for more information.
2024-07-03 01:18:27 +03:00
AndywinXp
d86ef1c35b SCUMM: GUI: Fix GUI edges glitching during SMUSH movies
Whenever _screenTop is non-zero the edges of GUI elements
will glitch during SMUSH movies. This happens on the originals
as well (the ending movies for DIG and COMI), but to a less extent.
2024-07-02 23:57:11 +02:00
AndywinXp
9b0c049e83 SCUMM: SMUSH: Fix color banding issues
Fixes the main issue of #15026:
"SCUMM: DIG: Color depth issues & artifacting
in some shots in SMUSH videos".

Verified from FT, DIG and COMI disassemblies.
2024-07-02 23:09:19 +02:00
athrxx
b7147fda30 SCI: fix bug no. 15242
(regression from PR 5877)
2024-07-02 22:14:06 +02:00
Benjamin Funke
dfd960e3a9 DGDS: add english variants of china 2024-07-02 16:53:56 +03:00
Cameron Cawley
ff530edcb1 GRAPHICS: Deprecate ManagedSurface methods that implicitly copy pixel data 2024-07-02 13:31:18 +01:00
neuromancer
3853dd99b5 FREESCAPE: added more entries in detection tables 2024-07-02 07:45:55 +02:00
Benjamin Funke
e1f2a52fe6 GOB: fix overload in hotspots.cpp 2024-07-02 07:36:23 +03:00
Benjamin Funke
43df893264 GOB: remove empty comment line 2024-07-02 07:36:23 +03:00
Benjamin Funke
b3061e0bc6 GOB: fix code overloads in map_v1.cpp 2024-07-02 07:36:23 +03:00