aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver/animation.cpp
AgeCommit message (Collapse)Author
2004-08-17Don't try to free text sprites with the memory manager - it uses standardTorbjörn Andersson
malloc() nowadays! (This only affected the "dummy" player. svn-id: r14638
2004-06-09Cleaned up the palette handling a bit. Renamed _palCopy to _palette since ITorbjörn Andersson
found the old name misleading (there is only one array that stores the palette in the engine, though it could be argued that it's a copy of the one used by the backend), and removed some code that I'm almost certain was never used. (I've added assert()s to trigger in the cases where it would have been used.) svn-id: r13949
2004-05-09Removed the buffering of mouse and keyboard events. I don't think any ofTorbjörn Andersson
our other engines do this, so there is little reason for BS2 to. I did add a filtering mechanism so that mouse button releases and scroll wheeling is ignored during normal gameplay, but I don't know if that was necessary either. Since this left little more than an empty husk where the Input class used to be, I've eliminated that class and buried its remains in Sword2Engine. svn-id: r13812
2004-05-01Simplified the handling of sound effects. It's not necessary for the driverTorbjörn Andersson
to keep its own copy of the sound data. It could be even further simplified (I don't really see any reason for having two different sound queues), but I seem to have reached a point of stability here and I don't want to jinx it by making further changes yet. svn-id: r13705
2004-04-23Major revamping of the BS2 memory manager and, some small changes to theTorbjörn Andersson
resource manager. All new code! All new bugs! svn-id: r13603
2004-03-28Renamed more OSystem methodsMax Horn
svn-id: r13410
2004-03-28Fixed bug I introduced in the recent cleanup: It's the screen, not theTorbjörn Andersson
overlay, that needs to be cleared at the beginning of the movie. Otherwise what was on the screen may show at the end of the movie. svn-id: r13398
2004-03-24Use the binary .pal file format that was introduced for 0.6.0.Torbjörn Andersson
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-23Unify MPEG2 code even moreMax Horn
svn-id: r13365
2004-03-22share 'init' method, tooMax Horn
svn-id: r13361
2004-03-22Fix crash introduced by recent code unification. (Mind you, I'm stillTorbjörn Andersson
extremely grateful that the BS1 and BS2 cutscene players are finally sharing at least some of their code now.) svn-id: r13360
2004-03-22some more cleanupMax Horn
svn-id: r13359
2004-03-22move commong code into separate source file (more could be done, but it's a ↵Max Horn
start) svn-id: r13358
2004-03-21Unify a bit more...Max Horn
svn-id: r13354
2004-03-04Apply patch #907359 : Broken Sword videos improved frameskipNicolas Bacca
svn-id: r13180
2004-03-01Fix from Roever for bug #892827James Brown
svn-id: r13107
2004-03-01Add fix for error at end of sword2demo (From eriktorbjorn)Travis Howell
Prevent false warnings in demo. svn-id: r13102
2004-02-28renamed more OSystem methods to follow our naming scheme; renamed ↵Max Horn
NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend svn-id: r13087
2004-02-22Avoid deadlock in MPEG-2 cutscenes + slow devicesNicolas Bacca
svn-id: r12996
2004-02-22Patch #885904 (Flac Support) with some tweaks by meMax Horn
svn-id: r12984
2004-02-21unified code a littleMax Horn
svn-id: r12974
2004-02-15Proper handling of BS2 cutscene lead-outs, plus some other minor fixes.Torbjörn Andersson
svn-id: r12907
2004-02-14Paint the overlay black at the end of the movie. Not all movies fade out onTorbjörn Andersson
their own, and sometimes the cutscene player will have to wait for the lead out to finish before returning to the game. (This will probably be true even after we fix the timing of the lead-outs.) svn-id: r12871
2004-02-13Check for MP3 file in Broken Sword cutscenes - useful for WinCE backend as ↵Nicolas Bacca
Tremor crashes for no specific reason (help appreciated :p) here svn-id: r12837
2004-02-12Changed the playback code to use the new "elapsed time" function instead.Torbjörn Andersson
This fixes bug #880484 for me, but may need some fine-tuning. svn-id: r12830
2004-02-08More cutscene fixes from roeverTravis Howell
svn-id: r12773
2004-02-07Patch #874510 from roever, fixes BS2 demo cutscene problems (bug #884568)James Brown
svn-id: r12761
2004-02-05Removed some of the #includes from sword2.hTorbjörn Andersson
svn-id: r12739
2004-01-30avoid using huge static structs - they can't be stripped, and increase the ↵Max Horn
exe size (in this case, 16 MB...) svn-id: r12678
2004-01-22whitespacesMax Horn
svn-id: r12575
2004-01-20Some minor cleanups (comments and spacing), and fixed CPU usage in syncedTorbjörn Andersson
cutscene playback. svn-id: r12536
2004-01-18This should make subtitles work again in "overlay" cutscene mode.Torbjörn Andersson
svn-id: r12506
2004-01-18I know we're not supposed to make cleanup commits at this point, but surelyTorbjörn Andersson
we can make an exception for removing self-described hacks and utterly misleading comments? :-) svn-id: r12497
2004-01-18Don't allow overlapping voice in cutscenes. Fixes crash in carib cutscene.James Brown
svn-id: r12474
2004-01-18BS1 cutscene support. Also bugfixes (don't crash if cutscene ogg unavailable)James Brown
svn-id: r12465
2004-01-17Update BS2 cutscene player with changes from roever: overlay support ↵James Brown
(default, 8bit backends should define BACKEND_8BIT for fast colour remapping) and sound syncronisation. svn-id: r12456
2004-01-14I wanted to Valgrind the cutscene code, so I had to fix the warnings aboutTorbjörn Andersson
uninitialized values. Now the only warnings I got were from libmpeg2 itself, and I don't know how serious that is. I've also added some code - disabled by default - to allow the cutscenes to run with libmpeg 0.3.1, since that's what I've got on my Linux box. It appears to work on that one, though I only have the "eye" cutscene on it yet. Ogg Vorbis playback is still broken for me under Windows, though. I wonder if it is because I don't have the very latest Ogg Vorbis libraries on it (since I didn't manage to compile them under MinGW). But surely the file format hasn't changed in any important way...? svn-id: r12374
2004-01-13cut down pointless header interdependenciesMax Horn
svn-id: r12360
2004-01-13Moved some methods into class AnimationState (where they really belong - ↵Max Horn
nicely shown by the fact that now all member vars of AnimationState are private) svn-id: r12359
2004-01-13Some more formatting cleanups. Made the Ogg file handle part of theTorbjörn Andersson
animation state so that it can be deleted in doneAnimation(). svn-id: r12358
2004-01-13Moved the rest of the MoviePlayer class into animation.cpp/.h, plus someTorbjörn Andersson
minor cleanups. (Mostly spacing and indentation). Unfortunately the Ogg Vorbis playback causes ScummVM to crash for me, so I can't say for certain that I didn't break anything. svn-id: r12356
2004-01-13added legal header; fixed incorrect fscanf use; C++ification (the code still ↵Max Horn
is quite Cish, though :-) svn-id: r12351
2004-01-12Initial libmpeg2 cutscene support based on patch #874510.James Brown
Pre-converted cutscenes w/ palette files available - ask LeChuck about Cutscenes :) svn-id: r12338