Commit Graph

73477 Commits

Author SHA1 Message Date
Colin Snover
60c3663142 SCI32: Fix incorrect logic of cycler overflow 2016-07-11 10:39:50 -05:00
Colin Snover
bc362e5b7c SCI32: Minor cleanup of GfxPalette32 2016-07-11 10:39:50 -05:00
Colin Snover
8fb55564a6 SCI32: Fix bad output caused by missing palette copies
Sometimes, games accidentally use palette entries that are not
marked as used and expect them to be a particular colour, like the
Phantasmagoria title screen, or the white palette entry (always
255 in DOS/Win).
2016-07-11 10:39:50 -05:00
Colin Snover
6a13adb638 SCI32: Fix sign comparison warning 2016-07-11 10:39:50 -05:00
Colin Snover
4cfc387602 SCI32: Split GfxPalette and GfxPalette32 + HunkPalette 2016-07-11 10:39:50 -05:00
Colin Snover
7f53a26d9e SCI32: Split kPalCycle into subop functions 2016-07-11 10:39:50 -05:00
Colin Snover
ec73fa1e4a SCI32: Fix audio deadlocks
Several functions in Audio32 would call into the mixer to pause
or resume the audio handle, which would cause a deadlock if the
mixer's mixCallback timer fired while one of these functions was
running on the main thread.

To address this, calls to mixer to pause/unpause the digital audio
handle have been removed. Since this was just an optimisation to
prevent unnecessary calls to fill the audio buffer, the only
problem now is that a tiny amount of CPU is wasted on unnecessary
callbacks to read from the empty SCI mixer.
2016-07-11 10:39:50 -05:00
Colin Snover
1714cf8aa5 SCI32: Minor Audio32 cleanup 2016-07-11 10:39:50 -05:00
Torbjörn Andersson
11ec5ad5a3 GRAPHICS: Fix copy/paste error in blitAlphaBitmapClip() (CID 1357410) 2016-07-11 05:43:24 +02:00
Torbjörn Andersson
6eabc887e1 GRAPHICS: Fix copy/paste error in blitSurfaceClip (CID 1357411) 2016-07-11 05:41:04 +02:00
Martin Kiewitz
eeafe230b9 SCI32: Fix an issue with the KQ7 subtitles script patch
Volume was lowered, but not raised afterwards for certain cases
Original script patch was commited in
b676530528
2016-07-11 00:26:05 +02:00
Martin Kiewitz
b676530528 SCI32: Add script patch to fix/improve KQ7 subtitles
Needs lots of testing of course
Applies to 1.51 and 2.00
2016-07-10 23:40:29 +02:00
Bastien Bouclet
504ffd2aba MOHAWK: Switch Riven saves to a slot based naming scheme
Existing saves are compatible but must be renamed to riven-###.rvn
2016-07-10 22:01:03 +02:00
Bastien Bouclet
f78bb08b18 MOHAWK: Save ScummVM specific metadata in the Riven saves
- Thumbnail
- Save date
- Save description
- Total play time
2016-07-10 22:01:03 +02:00
Bastien Bouclet
792548f28f MOHAWK: The French DVD version of Riven is just a repackaged CD version 2016-07-10 22:01:02 +02:00
Bastien Bouclet
c06e347d90 MOHAWK: Make the Riven saved games loadable by the original engine 2016-07-10 22:01:02 +02:00
Colin Snover
1c0c540fa7 MACOS: Use 'unsigned int' instead of NSUInteger
NSUInteger apparently does not exist until macOS 10.5, but
buildbot targets 10.4.
2016-07-10 11:46:32 -05:00
Colin Snover
46804fda15 SCI32: Re-enable KQ7 subtitles, but with a warning on game start 2016-07-10 11:46:19 -05:00
Colin Snover
c294e4fbf8 MACOS: Fix sign comparison 2016-07-10 10:50:05 -05:00
Colin Snover
774d0cbdb3 SCI32: Disable KQ7 subtitles
The subtitles in KQ7 were not finished and don't quite work right,
drawing off the screen and in weird positions. They could probably
be fixed with some aggressive script patching, but for now, they
are just disabled (as they are in the official release).
2016-07-10 10:50:05 -05:00
Colin Snover
0f5935f97c SCI32: Use #defines to reduce duplication of game options 2016-07-10 10:50:05 -05:00
Colin Snover
19f90177b7 SCI32: Clean up Video32/VMDPlayer 2016-07-10 10:18:30 -05:00
Colin Snover
b6dbc79021 SCI32: Add support for blacklined video
Ow. My eyeballs.
2016-07-10 09:36:10 -05:00
Colin Snover
4d91b458e5 SCI32: Implement kPlayVMD 2016-07-10 09:35:24 -05:00
Colin Snover
28d4f5b0e4 VIDEO: Expose API for providing a memory location to draw VMDs
In SSCI, VMD is drawn by a standard CelObjMem wrapped by a
ScreenItem, giving the location of the bitmap memory to the
decoder. The decoder already supports this, but the API was
previously hidden behind the AdvancedVMDDecoder wrapper
(which is more convenient to use than the VMDDecoder class).
2016-07-10 09:35:24 -05:00
Eugene Sandulenko
9cec2eea5c Merge pull request #774 from Tkachov/the-container-box-pr2
GUI: Add ScrollContainerWidget
2016-07-10 16:23:34 +02:00
Willem Jan Palenstijn
862f12c71b SCI: Set isSample when starting digital sample from soundInitSnd
This fixes digital samples in at least QfG1, SQ3, LSL5. Bug #7159.
2016-07-08 22:08:53 +02:00
Willem Jan Palenstijn
82eea1491b Merge pull request #775 from wjp/sci32_readwrite
SCI32: Improve FileIO read-write support
2016-07-06 21:09:29 +02:00
Willem Jan Palenstijn
d832a23241 SCI32: Add SaveFileRewriteStream for read/write access to files
At least Phantasmagoria and PQ:SWAT require this.

This adds a ReadStream/WriteStream to support this. It replaces
the previous VirtualIndexFile which required reimplementation of
most read/write functions.
2016-07-06 21:06:12 +02:00
Torbjörn Andersson
9382dab811 AUDIO: Fix audio corruption in MS ADPCM decoder
Since _decodedSamples[] is filled with either 2 or 4 samples, we
can't use 1 - (count - 1) to "ensure that acts as a FIFO". When
we have 4 samples, that index will become negative, putting
uninitialized data into the buffer.

We could still use a similar trick, but I think it's much clearer
to use an index variable like this. We need an addition variable
either way.
2016-07-06 20:51:28 +02:00
Martin Kiewitz
20ccd3affc SCI: Fix typo in script patch comment (longbow arithmetic bug)
Wasn't bug #6571, but bug #6751
Thanks to omer_mor for spotting it
2016-07-06 19:57:26 +02:00
Martin Kiewitz
273bbab82a Revert "SCI: Mark INNDEMO as demo"
This reverts commit 61a8a5a88f.
2016-07-06 13:24:43 +02:00
Martin Kiewitz
61a8a5a88f SCI: Mark INNDEMO as demo 2016-07-06 10:22:02 +02:00
Martin Kiewitz
3540cf189d Merge pull request #781 from OmerMor/inndemo
SCI: Add detection for the ImagiNation Network (INN) Demo
2016-07-06 00:00:22 +02:00
Omer Mor
445b690a6f SCI: Add detection for the ImagiNation Network (INN) Demo 2016-07-06 00:40:33 +03:00
Eugene Sandulenko
0854dbd68c Revert "GRAPHICS: Fix GUI transparency. As pointed by blitter on IRC"
This reverts commit 1d3d6c8692.

As it was pointed by wjp, this fully ignores the alphamask.
2016-07-05 19:23:04 +02:00
Eugene Sandulenko
c805b933d2 Merge pull request #780 from BenCastricum/po_nl-nl
I18N: Update dutch translation
2016-07-05 19:22:23 +02:00
Ben Castricum
c10d570055 I18N: Update dutch translation 2016-07-05 14:50:48 +02:00
Eugene Sandulenko
1d3d6c8692 GRAPHICS: Fix GUI transparency. As pointed by blitter on IRC 2016-07-05 09:26:11 +02:00
Bastien Bouclet
0440ff64f1 MOHAWK: Have the Myst and Riven options dialog share a base class
Now the Riven options dialog has the same features as the Myst one:
- Screen centering
- Save / Load / Quit buttons
2016-07-04 20:47:16 +02:00
Bastien Bouclet
d35d8efc50 MOHAWK: Change the Riven options dialog's cancel button not to save the settings 2016-07-04 20:47:16 +02:00
Bastien Bouclet
0c57c99f00 MOHAWK: Change the Riven options dialog not to subclass GUI::OptionsDialog 2016-07-04 20:47:16 +02:00
Martin Kiewitz
ee41f6456e SCI: Adding script patch for longbow arithmetic berry bush bug
Fixes bug #6571
2016-07-04 18:31:40 +02:00
Torbjörn Andersson
eff9f87483 PRINCE: Remove manual debug level setting. It's too noisy. 2016-07-04 07:12:45 +02:00
Torbjörn Andersson
fad29cf071 BBVS: Remove some uses of g_system 2016-07-04 06:52:37 +02:00
Torbjörn Andersson
9020002c78 PRINCE: Add video player for topware.avi logo
The sound is rather bad, but I assume that's something with our
CinePak video decoder so I'll leave it like this for now. The player
itself is based on the BBVS engine.
2016-07-04 01:03:32 +02:00
Torbjörn Andersson
35a5918ada PRINCE: Prefix the names of the data archives
This avoids a conflict between the "all" directory and the "all"
archive, if the directory happens to be named in all lower case.
While it isn't on the CD, we shouldn't introduce case sensitivity
in the file names if we can avoid it.
2016-07-03 22:20:52 +02:00
Torbjörn Andersson
2ac0b7d7ae PRINCE: Correct search path to voices/databank.ptc
At least in my copy, the voices directory is on the same level as
the other directories. (Though the whole thing is inside a
directory called "data", so maybe that's where that came from?)
2016-07-03 22:20:52 +02:00
Willem Jan Palenstijn
ea941962d7 Merge pull request #778 from raziel-/patch-1
BASE: Fix Typo
2016-07-03 22:13:47 +02:00
Hubert Maier
866f8ede2d BASE: Fix Typo 2016-07-03 23:12:07 +03:00