Commit Graph

18104 Commits

Author SHA1 Message Date
Florian Kagerer
6ca15d0888 SCUMM/FM-TOWNS: fix drawBox()
svn-id: r52991
2010-10-03 14:32:09 +00:00
Willem Jan Palenstijn
73310fe237 SCI: Remove unused function
svn-id: r52990
2010-10-03 10:49:58 +00:00
Willem Jan Palenstijn
f98536eef5 SCI: Allow multiple word groups in parser
In SCI01 and up, each typed word may be interpreted as multiple
class,group pairs. This patch adds support to the vocabulary and
parser. It uses the matcher support added in r52985.

This fixes parser issues in German LSL3, but needs testing.

svn-id: r52989
2010-10-03 10:49:42 +00:00
Arnaud Boutonné
694758fd2a HUGO: Clean-up
svn-id: r52988
2010-10-03 08:08:42 +00:00
Florian Kagerer
77fe52bbd7 INDY3/FM-TOWNS: fix intro graphics bug
svn-id: r52987
2010-10-02 23:18:15 +00:00
Willem Jan Palenstijn
a6839d5ffd SCI: Fix memleak
svn-id: r52986
2010-10-02 23:17:19 +00:00
Willem Jan Palenstijn
ab46bf0f61 SCI: Allow multiple word groups in parse tree leafs
This is to prepare for multilingual SCI versions. In those a single typed word
may be parsed to multiple class,group pairs, any of which may match
the said specs. The actual parsing is not yet implemented.

svn-id: r52985
2010-10-02 23:17:03 +00:00
Willem Jan Palenstijn
4a9f2204c4 SCI: Fix typo in testcase
svn-id: r52984
2010-10-02 22:11:51 +00:00
Florian Kagerer
5d1ab85874 SCUMM: update scumm-md5.txt
svn-id: r52981
2010-10-02 15:01:51 +00:00
Florian Kagerer
74681b81b3 SCUMM/FM-Towns: limit SCUMM 5 games to 16 bit graphics mode
8 bit mode makes no sense for these games since colors will be too messed up.
SCUMM 3 games (Indy 3, Loom, Zak) are still supported in 8bit mode.

svn-id: r52977
2010-10-02 13:25:50 +00:00
Eugene Sandulenko
8dca57e4e9 SAGA: Fix bug #3065113 with patched sound glitch
Bug #3065113: "ITE demo: patched sound at intro is not played correctly"

svn-id: r52975
2010-10-02 09:08:05 +00:00
Neeraj Kumar
a16832760b 1. Added ConfigParams Singelton class to eliminate use of configuration specific static variables.
2. Modified code to handle the change
3. Updated the previously merged obsolete copy of branch gsoc2010-testbed.

svn-id: r52973
2010-10-02 01:05:16 +00:00
Paul Gilbert
f94752f752 LURE: Partial fix for #3008511 Goewin getting stuck
This workaround prevents the Weregate from closing whilst Goewin is still within it

svn-id: r52971
2010-10-02 00:08:13 +00:00
Florian Kagerer
0d8f4a22ae SCUMM/FM-TOWNS: fix palette and other graphics issues
This commit should fix at least the following bugs/feature requests: #1032859, #1252088, #1055391, #1315968, #1315938, #1742106, #812891.
The FM-Towns version of Scumm games use a mixed graphics mode with 2 layers (one with 32767 colors and one with 16 colors). Among other things I have added a screen output class which emulates this  dual layer approach which allows specific hardware effects like enabling and disabling layers (e.g. in the voodoo priestess scene in MI1).

Old savegames (saved before this update) will load, but you’ll encounter palette glitches in the verb/inventory screen, since the 16 color palette for layer 2 is not contained in your savegame. This will be true at least for version 5 games. Certain scene change actions (which require the verb/inventory part to be redrawn) might correct this (e.g. try looking at the treasure map in MI1 and closing it). Version 3 games should be okay, since they use a static text palette which is never changed and which will be reset after loading a savegame.

This update requires a USE_RGB_COLORS setting for proper operation. 8 bit users will get a warning that they’ll have to expect palette glitches . Apart from that the engine in 8 bit mode should not only still work okay, but also benefit from some of the other (non palette related) improvements (e.g. bug #1032859 should be fixed even in 8 bit mode).

Japanese font drawing hasn’t been improved much yet. This will be a separate task.

svn-id: r52966
2010-10-01 19:24:52 +00:00
Arnaud Boutonné
5727cab0f1 HUGO: Remove viewport variables from _config
svn-id: r52963
2010-10-01 09:13:47 +00:00
Arnaud Boutonné
2efaedb29b HUGO: Fix crash using mouse
Fix crash when clicking on objects without a 
default 'TAKE' action (like the hero, the eyes and 
the bat in the first screen)

svn-id: r52962
2010-10-01 06:16:24 +00:00
Arnaud Boutonné
cc69fa8297 HUGO: Improve message boxes
- Use OK and YES/NO messages boxes when required
- Empty messages are no longer displayed

svn-id: r52960
2010-09-30 22:22:05 +00:00
Arnaud Boutonné
305d6fc7f5 GOB: Remove useless variable
svn-id: r52957
2010-09-30 15:31:31 +00:00
Sven Hesse
947540c089 GOB: Fix 16bit cursors
svn-id: r52952
2010-09-30 13:04:43 +00:00
Sven Hesse
1d17a4157f GOB: Remove extra \n in debug warning()s
svn-id: r52951
2010-09-30 13:04:14 +00:00
Sven Hesse
89f946ba3e GOB: Transparency support for 16bit surfaces
svn-id: r52950
2010-09-30 13:03:51 +00:00
Sven Hesse
3ab8bf16a2 GOB: Create 16bit surfaces for true color games
Enabling basic Urban drawing again

svn-id: r52949
2010-09-30 13:03:22 +00:00
Sven Hesse
4f2b58b117 GOB: Remove the now useless VGAVideoDriver
svn-id: r52948
2010-09-30 13:02:50 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Sven Hesse
38e5060041 GOB: Add a new class Surface
This will be the new class managing all drawing, providing
depth-agnostic methods for all drawing operations, including 2
iterator-like classes, Pixel and ConstPixel.

svn-id: r52946
2010-09-30 13:01:07 +00:00
Sven Hesse
e68b6e9f15 GOB: Remove dither stuff, commenting out most v6 drawing
svn-id: r52945
2010-09-30 13:00:30 +00:00
Sven Hesse
b6766f0d7f GOB: Stub setting up of 16bpp graphics
svn-id: r52944
2010-09-30 12:59:48 +00:00
Sven Hesse
13d41dca41 GOB: Add kFeaturesTrueColor
svn-id: r52943
2010-09-30 12:59:18 +00:00
Sven Hesse
3cb3b1e692 GOB: Rename kFeatures640 to kFeatures640x480
svn-id: r52942
2010-09-30 12:58:52 +00:00
Max Horn
484bf9c269 ALL: Fixup some #define names
svn-id: r52935
2010-09-28 20:30:50 +00:00
Arnaud Boutonné
07427bed74 HUGO: Suppress useless parameter in several functions
svn-id: r52933
2010-09-28 19:49:53 +00:00
Max Horn
2db927c223 TINSEL: Remove redundant '_Windows' check
svn-id: r52932
2010-09-28 19:06:03 +00:00
Torbjörn Andersson
30db851ef0 SAGA: Fix wrong logo animation in some versions of ITE
Not all releases put the Wyrmkeep credits patch in a "graphics"
sub-directory, so assume it could be anywhere.

svn-id: r52930
2010-09-28 18:55:54 +00:00
Torbjörn Andersson
2d82cc385d SAGA: Fix an ITE intro regression
(Possibly related to bug #3076822 - ITE: Dialog repeats in intro.)

The p2_a.voc patch file wasn't played. This was because the engine
first loaded p2_a.voc as a replacement for voice resource 4. Then it
tried to load p2_a.iaf and, when it failed, removed the patch data
for the very same resource. Now it only tries to read a patch if it
hasn't already found a patch for the resource. (There may have been a
similar bug in the end credits as well.)

svn-id: r52928
2010-09-28 18:15:25 +00:00
Torbjörn Andersson
5d1e26d804 SAGA: Initialise _driverType
svn-id: r52922
2010-09-28 04:53:38 +00:00
Arnaud Boutonné
d46f4a2fc0 HUGO: Move strlwr to Utils
svn-id: r52921
2010-09-27 21:50:11 +00:00
Arnaud Boutonné
3db60d9e44 HUGO: Add F3 behavior (recall), little cleanup
- Add F3 behavior
- Move drawStatusText() to Screen

svn-id: r52920
2010-09-27 20:24:36 +00:00
Martin Kiewitz
cd6aa62702 SCI: adding separate status drawing code
now also draws "IV" in KQ4 correctly. This wasn't the case before because we reused the regular drawing code, which would see the 0xA ("IV") as linebreak

save for backport

svn-id: r52913
2010-09-26 18:23:53 +00:00
Martin Kiewitz
432b7b25d9 SCI: kDrawPic setting _picNotValid on non-front
fixes lsl5 english graphic corruption during taj mahal wakeup, should also fix sq5 1.03 graphic corruption right after scrubbing (bug #3041069)

save for backporting

svn-id: r52911
2010-09-26 15:47:13 +00:00
Torbjörn Andersson
5537ac91bf JANITORIAL: Removed unnecessary semi-colons.
svn-id: r52910
2010-09-26 15:46:25 +00:00
Torbjörn Andersson
ad02009888 AGOS: Hopefully fix bug #3000876 ("FF: Crackling/static popping")
We want the WAV stream in playSounData() to contain the entire WAV
data, but the size we read does not include the eight first bytes.

svn-id: r52908
2010-09-26 12:28:26 +00:00
Travis Howell
184833924b AGOS: Fix bug #3011638 - WAXWORKS: Crash retrieving spear from the crocodile carcass.
svn-id: r52906
2010-09-26 12:22:46 +00:00
Torbjörn Andersson
113e14224d AGOS: Fix Valgrind warnings on exit.
svn-id: r52904
2010-09-26 12:07:50 +00:00
Arnaud Boutonné
64017f266e HUGO: Remove extra ;
svn-id: r52903
2010-09-26 11:43:07 +00:00
Arnaud Boutonné
20a6180459 HUGO: Add H1 Dos intro
svn-id: r52902
2010-09-26 11:32:52 +00:00
Torbjörn Andersson
4543855eca AGI: Fix bug in cmd_cancel_line()
We have to update cursor position, not just terminate the input
buffer. This makes Ctrl-C work as intended, which fixes one half of
bug #3054184 ("SQ1 AGI: keyboard special keys are not functioning
properly"). I'm not sure if the second half actually is a bug. 

svn-id: r52899
2010-09-26 11:20:55 +00:00
Eugene Sandulenko
f965616552 SCUMM: Fix bug #3052804 by reverting NES-specific screen width hack
svn-id: r52891
2010-09-25 20:50:13 +00:00
Martin Kiewitz
7105e294e2 SCI: little optimization in kAddToPic
definitely save to backport, belongs to r52887

svn-id: r52888
2010-09-25 19:43:36 +00:00
Martin Kiewitz
18cd3333c0 SCI: changes to kAddToPic
kAddToPic doesnt do loop/cel fixups, it also doesnt support global scaling and will only set nsRect on scaled Cels, not reusing fill() of kAnimate anymore, but doing those things separately

fixes kq6 - 2nd window shown instead of peppermint bush (bug #3070465)

should be save to backport

svn-id: r52887
2010-09-25 19:28:56 +00:00
Matthew Hoops
d4504a3f3a AGI: Fix C64 AGI pictures
The initial screen color needs to be 0 and not 0xf for these. Winnie C64/Apple II should be completable now, with some graphical glitches and palette problems.

svn-id: r52881
2010-09-25 14:28:48 +00:00