338 Commits

Author SHA1 Message Date
Paweł Kołodziejski
70545f2c01 please fix
svn-id: r13433
2004-03-30 07:11:01 +00:00
Max Horn
14378cb56e Renamed more OSystem methods
svn-id: r13410
2004-03-28 16:30:50 +00:00
Max Horn
9d89a5f543 Fix bug #920491 (BS1: Game crashes when savepath is invalid)
svn-id: r13396
2004-03-28 12:59:51 +00:00
Torbjörn Andersson
afefe7dcfa Use the binary .pal file format that was introduced for 0.6.0.
Invalidate the lookup table when the screen changes. (TODO: We also have to
invalidate it if the change happens between cutscenes, don't we?)

Some cleanup, particularly in the BS2 cutscene player. More needed, I
guess...

svn-id: r13377
2004-03-24 07:29:59 +00:00
Max Horn
3fddbc18d6 Unify MPEG2 code even more
svn-id: r13365
2004-03-23 00:10:18 +00:00
Max Horn
d24be923f3 share 'init' method, too
svn-id: r13361
2004-03-22 20:46:30 +00:00
Max Horn
838d3e3a93 some more cleanup
svn-id: r13359
2004-03-22 01:40:24 +00:00
Max Horn
4466a85598 move commong code into separate source file (more could be done, but it's a start)
svn-id: r13358
2004-03-22 01:28:45 +00:00
Max Horn
a9789acfc6 Moved Surface/Font code into new 'graphics' module
svn-id: r13357
2004-03-21 21:20:25 +00:00
Max Horn
b94448514e Unify a bit more...
svn-id: r13354
2004-03-21 18:49:04 +00:00
Max Horn
f8610cd1c5 fix doxygen-comment mistakes
svn-id: r13286
2004-03-15 00:55:44 +00:00
Torbjörn Andersson
1f5d4dcd23 When both music channels are used, and a third piece of music starts,
silence the channel that appears to be closest to silence already. This is
the same method I used in BS2, and it might fix a glitch I heard at the
Club Alamut.

svn-id: r13234
2004-03-13 12:04:18 +00:00
Torbjörn Andersson
711f925f69 Always play the "current music" after restoring a savegame, even if it's 0.
If it is, all that happens is that it silences the music. Otherwise, the
current music that was playing before the game was restored will keep
playing afterwards.

(One example of this: I went into the Hotel Ubu and restored a savegame at
the hospital. The piano music kept playing in the background.)

svn-id: r13230
2004-03-12 08:21:01 +00:00
Robert Göffringmann
8b39133cab changed workaround again, it's also needed when entering the room, not only when restoring a savegame.
svn-id: r13216
2004-03-07 19:24:41 +00:00
Robert Göffringmann
757bc4cec6 work around script bug #911508 BS1: Crash when loading certain savegames
svn-id: r13215
2004-03-07 19:14:32 +00:00
Torbjörn Andersson
de848a5d80 Removed obsolete warning message from fnPlaySequence().
svn-id: r13195
2004-03-05 07:39:28 +00:00
Nicolas Bacca
9e1fa63575 Apply patch #907359 : Broken Sword videos improved frameskip
svn-id: r13180
2004-03-04 18:54:35 +00:00
Torbjörn Andersson
1db5ef710e Set the wantFade variable in initialize() as well. Otherwise it'll be false
if you use the start-up dialog to restore an old savegame.

svn-id: r13164
2004-03-03 07:37:46 +00:00
Nicolas Bacca
30d169d2be Display keyboard when saving
svn-id: r13151
2004-03-02 19:47:17 +00:00
Torbjörn Andersson
82c451774c When scrolling, force a full redraw not only when the scroll offset changes
but also on the first frame where it doesn't. This is necessary because
parallax layers may be drawn on the *old* scroll offset (for reasons
unknown to me).

To see the bug, walk right from the first screen until you reach the tree.
Notice how the part of the tree you walk behind gets redrawn slightly to
the left.

svn-id: r13120
2004-03-01 08:04:10 +00:00
James Brown
b77231a9a3 Fix from Roever for bug #892827
svn-id: r13107
2004-03-01 04:05:10 +00:00
Max Horn
c6752cccf5 renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
2004-02-28 12:58:13 +00:00
Max Horn
d158280425 the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
2004-02-24 22:39:42 +00:00
Nicolas Bacca
e469cd43a7 Avoid deadlock in MPEG-2 cutscenes + slow devices
svn-id: r12996
2004-02-22 18:13:54 +00:00
Torbjörn Andersson
e40e3dd530 Cody56's fix for a minor graphics glitch.
<Cody56> but don't commit it to the 0.6.0 branch

svn-id: r12993
2004-02-22 16:31:32 +00:00
Torbjörn Andersson
95831a2d5b Free _screenBuf and _screenGrid before allocating new ones.
svn-id: r12990
2004-02-22 16:09:34 +00:00
Max Horn
aa6ec62e9d Patch #885904 (Flac Support) with some tweaks by me
svn-id: r12984
2004-02-22 14:11:16 +00:00
Max Horn
1d7eafe675 unified code a little
svn-id: r12974
2004-02-21 20:00:51 +00:00
Torbjörn Andersson
55556c813c Proper handling of BS2 cutscene lead-outs, plus some other minor fixes.
svn-id: r12907
2004-02-15 14:22:54 +00:00
Travis Howell
154bd9e3c5 Fix for valgrind warning (From LavosSpawn)
svn-id: r12846
2004-02-13 11:04:15 +00:00
Nicolas Bacca
3c6114bd9c Check for MP3 file in Broken Sword cutscenes - useful for WinCE backend as Tremor crashes for no specific reason (help appreciated :p) here
svn-id: r12837
2004-02-13 00:54:58 +00:00
Torbjörn Andersson
447e8d9386 Updated the cutscene playback code to use the new "elapsed time" mixer
function.

svn-id: r12831
2004-02-12 17:16:38 +00:00
Travis Howell
587622d664 More cutscene fixes from roever
svn-id: r12774
2004-02-08 14:11:11 +00:00
Max Horn
f59eb3b219 renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
svn-id: r12722
2004-02-05 00:19:57 +00:00
Max Horn
25e2688b4d help poor VC7
svn-id: r12711
2004-02-01 21:10:26 +00:00
Max Horn
da76ac5890 Various changes to the build system which allow building ScummVM in an external directory (and as such, allow you to have a debug, a profiling, and a release build from the same set of source files in parallel). Work in progress
svn-id: r12680
2004-01-30 21:54:28 +00:00
Max Horn
2f8d19d004 avoid using huge static structs - they can't be stripped, and increase the exe size (in this case, 16 MB...)
svn-id: r12678
2004-01-30 20:57:23 +00:00
Max Horn
4dab40f123 fix whitespaces (we should eventually try to remove this code duplication again, folks. maybe add a 'video' global module or so...)
svn-id: r12676
2004-01-30 20:47:21 +00:00
Travis Howell
96e0a747f9 Add fix from eriktorbjorn to make sure screen is always updated during cutscnes.
svn-id: r12654
2004-01-28 04:11:06 +00:00
James Brown
33d7e5a093 Don't crash if unable to play cutscene music.
svn-id: r12566
2004-01-21 08:50:15 +00:00
Torbjörn Andersson
61c37c97c7 Changed printf() to warning()
svn-id: r12538
2004-01-20 13:28:49 +00:00
Torbjörn Andersson
bd34655abb I assume this fixes CPU usage in synced cutscene playback, but since I
don't have said cutscenes I can't really check. (I did the same change for
BS2 though.)

svn-id: r12537
2004-01-20 13:27:17 +00:00
Max Horn
e67b734fd2 fixed warning
svn-id: r12494
2004-01-18 18:42:58 +00:00
Paweł Kołodziejski
ef9732f1f5 fix compilation
svn-id: r12467
2004-01-18 07:21:10 +00:00
James Brown
ad46828d1c BS1 cutscene support. Also bugfixes (don't crash if cutscene ogg unavailable)
svn-id: r12465
2004-01-18 05:52:04 +00:00
Nicolas Bacca
21eff1eef2 And again ... guess who fails compiling this ?
svn-id: r12453
2004-01-17 11:16:38 +00:00
Torbjörn Andersson
9b13e872b3 I found and fixed a nasty fade-up bug in BS2. I don't know if the same
situation could happen in BS1, but it's better to be safe than sorry, so
here are the same changes, as applied to the BS1 music code.

svn-id: r12393
2004-01-14 18:39:24 +00:00
Torbjörn Andersson
2fb7d4c553 Changed the music fading so that the volume is increased when ABS(_fading)
grows larger, both when fading up and down. This fixes the problem where
the volume would "jump" when changing the fading "direction" of a stream.

svn-id: r12373
2004-01-14 08:09:03 +00:00
Torbjörn Andersson
7309705db5 cleanup
svn-id: r12322
2004-01-11 16:53:33 +00:00
Torbjörn Andersson
efb03e0024 Changed dumpRes() to use the File class. (Untested.)
svn-id: r12321
2004-01-11 16:27:36 +00:00