aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/animation.cpp
AgeCommit message (Collapse)Author
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-13I18N: Make many more GUI MessageDialog strings translatableThierry Crozat
2011-06-02SWORD1: Replace snprintf() usage with Common::String::format()D G Turner
Safer and less portability issues.
2011-05-17SWORD1: Const correctness, code cleanup & simplificationMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-15SWORD1: Adapt to setPalette RGBA->RGB change.Johannes Schickel
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-02-09VIDEO: In overloaded methods, invoke correct parent implementationMax Horn
This should not cause any code behavior changes at this time, but if any of the intermediate VideoDecoder classes ever starts to overload stuff, this would become important. svn-id: r55841
2011-02-07COMMON: OSystem now has a PaletteManagerMax Horn
svn-id: r55806
2011-01-23VIDEO: Move video classes to Video:: namespaceEugene Sandulenko
svn-id: r55479
2010-12-16VIDEO: Make VideoDecoder::getPalette() return a const byte pointerMatthew Hoops
svn-id: r54928
2010-12-16VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointerMatthew Hoops
svn-id: r54927
2010-05-23Another video player regression: When the palette changes, look up theTorbjörn Andersson
lightest/darkest available colours to use as white/black for the subtitles. It is possible that we could get away with fixed values for Broken Sword 2, since it has always had subtitles. But for Broken Sword 1, subtitles is a ScummVM addition, and we can't. svn-id: r49154
2010-05-23Keep the Broken Sword cutscene players from using up all available CPU.Torbjörn Andersson
Probably a regression from the recent video decoder rewrite, but I haven't checked if it also present in other engines. svn-id: r49153
2010-05-18Committing the rest of the VideoDecoder Rewrite from patch #2963496.Matthew Hoops
svn-id: r49079
2010-05-17Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of ↵Matthew Hoops
the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite). svn-id: r49063
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-09Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a ↵Max Horn
higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it. svn-id: r47213
2010-01-06- Move openStreamFile from AudioStream to SeekableAudioStream.Johannes Schickel
- Fix documentation of openStreamFile. svn-id: r47080
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-16Added a new convenience method to the video player, which adds the event of ↵Filippos Karapetis
skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used svn-id: r45151
2009-08-30Fix indentationJordi Vilalta Prat
svn-id: r43837
2009-07-28Fixed drawing subtitles for cutscenes that are narrower than the screen, andTorbjörn Andersson
erase the subtitles manually if they are drawn outside the frame. svn-id: r42859
2009-05-20- Reverted commit #40730, as it introduced rounding errorsFilippos Karapetis
- Properly fixed the FLIC player - The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method svn-id: r40736
2009-05-19Changed calculations based on frame delay to be based on the scale of 1ms, ↵Filippos Karapetis
not 1/100. This fixes the FLIC player and also makes the overall code a bit clearer and easier to understand svn-id: r40730
2009-03-09Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as ↵Max Horn
some other tweaks svn-id: r39255
2009-03-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
2009-02-21Allocate the background sound handle dynamically. Otherwise, it seems to me ↵Torbjörn Andersson
as if it should be invalid as soon as the makeMoviePlayer() function ends. While that never caused any noticeable problems for me in Broken Sword 1, it broke things in amusing ways when I tried to rewrite the Broken Sword 2 cutscene player along the same lines. svn-id: r38684
2009-02-21Cleanup.Torbjörn Andersson
svn-id: r38680
2009-02-20Minor consistency change.Torbjörn Andersson
svn-id: r38650
2009-02-16If the DXA cutscene audio fails to play for whatever reason (shouldn't happen inTorbjörn Andersson
BS1 since all the cutscenes have an audio track), assume audio and video are in sync. svn-id: r38384
2009-02-16Blank the palette correctly. (Fixes Valgrind warning.)Torbjörn Andersson
svn-id: r38343
2009-02-15Oops, fixed Smacker video playing in BS1Filippos Karapetis
svn-id: r38237
2009-02-15Applied my patch for the BS1/2 video playerFilippos Karapetis
- Support for the MPEG2 videos in BS1/2 has been dropped. The MPEG2 videos were lossy, and support for them complicated the code a lot. - Support for the non-existing enhanced MPEG cutscene packs for BS1 has been dropped. As a consequence, the credits player and the splitted audio stream players used for these packs has been removed - The original Smacker videos for both games are now supported, using our Smacker player (which is based off publically available specs and FFMPEG) - The animations now use the common video player code. Both the Smacker videos and our DXA video packs are supported svn-id: r38236
2009-02-14Fixed bug #2599531 ("SWORD1: truck.dxa plays striped"). The last parameter toTorbjörn Andersson
copyFrameToBuffer() is the pitch of the destination buffer, not the frame. svn-id: r36330
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-06Updated SWORD1 with the latest changes to video playersFilippos Karapetis
svn-id: r35760
2008-12-14Enable Smacker support, and switch later HE games to Smacker support (since ↵Travis Howell
they aren't supported yet). svn-id: r35368
2008-12-01Fixed compilation.Johannes Schickel
svn-id: r35200
2008-12-01Got rid of Stream::readLine_OLD calls in two places (mostly untested, please ↵Max Horn
check/test for regressions) svn-id: r35198
2008-11-18Committed by patch #2219361 ("BS1: Simplified subtitles"). It uses theTorbjörn Andersson
lockScreen() / unlockScreen() backend API, instead of copyRectToScreen(). Before, it had to copy a piece of the engine's screen to draw on to simulate transparency, which was awkward. However, this means we're now forcing full-screen updates on each frame. There may be performance regressions, particularly if the frames are much smaller than the screen. Hopefully, it's the decoding that's the bottleneck, but if this causes problems on low-end devices... well, Fingolfin had some ideas about that when he first proposed the lockScreen() / unlockScreen() API. svn-id: r35115
2008-11-06Got rid of OSystem::colorToRGB and RGBToColor; added implementations for ↵Max Horn
OSystem::getOverlayFormat to several ports (pending testing by the porters) svn-id: r34912
2008-10-13Fixed crash after using cutscene subtitles. (Now I *know* no one has used thatTorbjörn Andersson
feature before. :-) svn-id: r34796
2008-10-12Increased maximum subtitle line length for SimSaw. That code really should beTorbjörn Andersson
made more robust some day, but until now I don't think anyone actually used it. svn-id: r34787
2008-09-30Renamed Engine::quit to Engine::shouldQuit (previously, it was easily ↵Max Horn
confused with Engine::quitGame); also cleaned up engine.h a bit svn-id: r34700
2008-09-27Slight simplification of last commit.Torbjörn Andersson
svn-id: r34658
2008-09-27Allow quitting or returning to the launcher while cutscenes are playing.Torbjörn Andersson
svn-id: r34657