12663 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
c12a78eaa8 SCI: Fix compile error with DEBUG_AVOIDPATH
svn-id: r44384
2009-09-26 22:56:15 +00:00
Willem Jan Palenstijn
be0b1e060b SCI: Fix regression in r44081 breaking walking in QfG2
svn-id: r44383
2009-09-26 22:55:24 +00:00
Willem Jan Palenstijn
a49da8381b SCI: Fix copy/paste error
svn-id: r44382
2009-09-26 22:50:35 +00:00
Florian Kagerer
00504a893b LOL/PC-98: fix menu colors
svn-id: r44381
2009-09-26 21:17:47 +00:00
Florian Kagerer
5d17bae120 LOL/PC-98: more fixes for text displayer and character inventory
svn-id: r44380
2009-09-26 18:25:36 +00:00
Martin Kiewitz
eb24b8e455 FLAC support had a typo in detection, fixed
svn-id: r44379
2009-09-26 16:03:16 +00:00
Vladimir Menshakov
7242428a04 commented out walkbox debug code.
svn-id: r44378
2009-09-26 15:05:47 +00:00
Vladimir Menshakov
605b6fd885 removed packed structs/direct read/writes, so the game should work on big-endian archs.
svn-id: r44377
2009-09-26 15:04:09 +00:00
Denis Kasak
27a638fa82 draci: Fixed bug in Surface::centerOn{X,Y}() which made it return a negative coordinate for strings that are too long. Resolves the crash caused by the English data files containing strings which are improperly line-breaked. Ideally, the engine should do the line-breaking itself when the string does not fit.
svn-id: r44376
2009-09-26 13:47:32 +00:00
Florian Kagerer
84accad507 LOL/PC-98: start fixing sequences (like broken arms inn and king richard getting poisoned)
svn-id: r44375
2009-09-26 13:17:11 +00:00
Paweł Kołodziejski
e46029e8c6 added option to allow control digital imuse tempo callback. it's related to volume fading, lip sync quality and platform resource costs.
svn-id: r44374
2009-09-26 09:31:05 +00:00
Paul Gilbert
a5df07f56a Bugfix for the dirty rects for drawn sprites when the sprite is partially off-screen
svn-id: r44372
2009-09-26 04:37:19 +00:00
Paul Gilbert
7f1b50f300 Dirty rects fix for pixels remaining on screen changes
svn-id: r44371
2009-09-26 04:13:44 +00:00
Florian Kagerer
73a4b7857f LOL/PC-98: fixed gui colors (money stash, live and magic bars, scroll)
svn-id: r44370
2009-09-25 22:07:34 +00:00
Florian Kagerer
77a27acf83 LOL/PC-98: fixed dialoge box sizes
svn-id: r44369
2009-09-25 21:33:00 +00:00
Florian Kagerer
229aee065c LOL/PC-98: start fixing text displayer
svn-id: r44363
2009-09-25 18:56:53 +00:00
Robert Špalek
431780297e Added some more const's to the interface of Dragon History
svn-id: r44362
2009-09-25 17:33:00 +00:00
Filippos Karapetis
180b3f1247 Create a define for the special "signal" offset used throughout the engine, and fixed the arbitrary 0 values from commit #44294, set when some math functions do invalid calculations
svn-id: r44359
2009-09-25 16:15:57 +00:00
Max Horn
2fe6b32968 SCI: Remove EngineState::game_version, it was only used for saving anyway. Also remove syncCStr()
svn-id: r44358
2009-09-25 13:02:11 +00:00
Max Horn
78d2ea9fcf SCI: Fix a memory leak
svn-id: r44357
2009-09-25 13:01:50 +00:00
Max Horn
4221773f6a SCI: Pedantic cleanup
svn-id: r44356
2009-09-25 13:01:35 +00:00
Max Horn
f91f4d4186 Patch #2858137 and fix for bug #2855359: fmt_fnt.rom font loading failure is ignored
svn-id: r44346
2009-09-25 11:39:22 +00:00
Filippos Karapetis
d72ad75c52 Reverted commit #44316, as colors show up correctly now without dithering. Dithering is now off again for SCI0 by default, an can optionally be turned on
svn-id: r44339
2009-09-25 10:11:31 +00:00
Filippos Karapetis
e296cef9be Created a macro for lround(), for non-C99 compilers, and used that in places where lround() is used
svn-id: r44337
2009-09-25 09:48:43 +00:00
Max Horn
adaf3ec8b4 SCUMM: Rename _bitDepth to _bytesPerPixel
svn-id: r44336
2009-09-25 09:13:33 +00:00
Robert Špalek
f51c81f344 Add const's to many interfaces of engines/draci/
svn-id: r44331
2009-09-25 08:13:39 +00:00
Filippos Karapetis
a74a9c6c01 Silenced some warnings
svn-id: r44329
2009-09-25 07:06:55 +00:00
Filippos Karapetis
7106caca81 Replaced the C99 lround() with floor(), to get draci to compile under non-C99 compilers (e.g. VS)
svn-id: r44328
2009-09-25 07:05:26 +00:00
Robert Špalek
edd338b229 Make engines/draci/ compilable after merging from a branch
svn-id: r44327
2009-09-25 06:43:33 +00:00
Robert Špalek
94b823fcc7 MERGE branch gsoc2009-draci 41388:44325 into trunk
svn-id: r44326
2009-09-25 06:22:54 +00:00
Johannes Schickel
902e0699b1 Add comment about why r44322 was needed.
svn-id: r44323
2009-09-25 01:00:34 +00:00
Johannes Schickel
ec040488b7 Implement proper overflow handling in Gdi::writeRoomColor for Indy4 Amiga as described in #1294513 "FOA/Amiga: Palette problem (Regression)".
svn-id: r44322
2009-09-25 00:50:51 +00:00
Johannes Schickel
506fceeb9d Attempt to fix bug #2838205 "MONKEY: Palette glitches in Amiga version" as described on the tracker item.
svn-id: r44321
2009-09-25 00:31:46 +00:00
Willem Jan Palenstijn
10b6349291 SCI: When setting global palette, map all unused colours to index 0.
This fixes white artifacts outside the bar in the SQ4CD intro,
but might cause regressions elsewhere.

svn-id: r44320
2009-09-24 23:54:48 +00:00
Willem Jan Palenstijn
825421108b SCI: Delete unused function declaration
svn-id: r44319
2009-09-24 23:54:30 +00:00
Max Horn
881eee8105 SCI: Fix spelling
svn-id: r44318
2009-09-24 22:10:39 +00:00
Willem Jan Palenstijn
e183222df3 SCI: Fix flat dithering by permuting the blended palette so that the EGA colours are the first 16 entries
svn-id: r44317
2009-09-24 21:37:54 +00:00
Filippos Karapetis
842602ee8c Set dithering to the FreeSCI "enhanced" style by default for SCI0 games, as disabling dithering makes some colors not show up correctly (e.g. the trees in Iceman and LSL3). Dithering can still be disabled on a per-game basis by using the "dither_mode" option
svn-id: r44316
2009-09-24 19:38:02 +00:00
Filippos Karapetis
7820605450 Oops, DoNextFrame() is supposed to return a value
svn-id: r44315
2009-09-24 17:59:19 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Johannes Schickel
0ea3cde160 Turn an error into a warning.
svn-id: r44313
2009-09-24 17:28:14 +00:00
Filippos Karapetis
a983c88e37 Reverted parts of revisions #44292, #44293, #44295 and #44296, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
5028d5a68b Reverted my commit #44290 - apparently, it was a bad idea, as g_engine is a hack
svn-id: r44311
2009-09-24 17:07:27 +00:00
Johannes Schickel
9ab801bec6 Fixed bug in Engine::flipMute, whiched prevent the game from being muted the first time flipMute is called, when there's no "mute" config entry.
svn-id: r44308
2009-09-24 16:17:52 +00:00
Johannes Schickel
e56dbf68be Changed some code to follow our guidelines.
svn-id: r44307
2009-09-24 16:17:25 +00:00
Johannes Schickel
f2a07d7ae9 Fix what looks like a typo in the condition, which checks for a divide by zero.
svn-id: r44306
2009-09-24 14:07:02 +00:00
Johannes Schickel
b2817fdb7d Add the "FIXME" comment at "g_engine" from engine.cpp to "g_engine" in engine.h too.
svn-id: r44305
2009-09-24 14:02:05 +00:00
Johannes Schickel
ade3204b56 Fix warnings.
svn-id: r44304
2009-09-24 13:59:09 +00:00
Filippos Karapetis
2dbd096dd5 Changed _script to be a pointer, in order to control its creation/destruction, like the rest of the groovie engine parts, and resolve a potential issue that Microsoft claims to be severe (warning C4355, read more here: http://msdn.microsoft.com/en-us/library/3c594ae3.aspx)
svn-id: r44303
2009-09-24 10:58:00 +00:00
Filippos Karapetis
1cc326dda0 Changed make_reg to accept the same type of parameters as a reg_t does - i.e. 16-bit integers, instead of 32-bit ones
svn-id: r44302
2009-09-24 10:30:05 +00:00