Max Horn
668adaa461
GUI: Rename gui/GuiManager.* to gui/gui-manager.*
...
svn-id: r54265
2010-11-16 10:19:01 +00:00
David Turner
cb734285a5
SWORD1: Added basic debugging console to engine
...
SWORD1 does not currently use Debug Channels, but this does provide a base for adding them along with any other debugging commands.
svn-id: r54140
2010-11-08 12:22:58 +00:00
Johannes Schickel
a5c28de26b
SWORD1: Switch to the new play time counting of the Engine class.
...
svn-id: r53924
2010-10-29 16:53:46 +00:00
Filippos Karapetis
e74e4814e4
SWORD1: Fixed bug #3087855 - "SWORD1: Code analysis warnings"
...
svn-id: r53488
2010-10-15 13:07:31 +00:00
Max Horn
4ccce19876
ENGINES: Enhance namespace comments a bit
...
svn-id: r53484
2010-10-15 12:48:19 +00:00
Torbjörn Andersson
54b2a8c98d
JANITORIAL: Cleanup (mostly whitespace)
...
svn-id: r53161
2010-10-12 04:19:58 +00:00
Eugene Sandulenko
ba04f31ade
SWORD1: Fix bug #3032772 : SWORD1: Mute setting does not work
...
svn-id: r52827
2010-09-20 20:37:34 +00:00
Torbjörn Andersson
c91a07229a
JANITORIAL: Removed most punctuation at end of warning() and error()
...
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.
svn-id: r52791
2010-09-18 10:55:16 +00:00
Johannes Schickel
4e33b7a3be
GRAPHICS: Renamed skipThumbnailHeader to skipThumbnail.
...
svn-id: r51668
2010-08-02 22:28:30 +00:00
Max Horn
0b48a71c99
Remove PalmOS port
...
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
d570e10b77
Modify makeAIFFStream to match the other sound decoder factories
...
svn-id: r49844
2010-06-15 12:33:54 +00:00
Torbjörn Andersson
1b294306dd
Another video player regression: When the palette changes, look up the
...
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-23 11:16:10 +00:00
Torbjörn Andersson
8ed56e1834
Keep the Broken Sword cutscene players from using up all available CPU.
...
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-23 10:50:14 +00:00
Matthew Hoops
11cbdd0318
Committing the rest of the VideoDecoder Rewrite from patch #2963496 .
...
svn-id: r49079
2010-05-18 14:17:24 +00:00
Matthew Hoops
c7fa1074fb
Change VideoDecoder::getCurFrame() to mean the last frame drawn instead of the next frame to draw. This is patch 1 from patch #2963496 (VideoDecoder Rewrite).
...
svn-id: r49063
2010-05-17 21:59:05 +00:00
Max Horn
2149a2383d
Reduce indirect header dependencies further
...
svn-id: r48936
2010-05-04 12:00:16 +00:00
Max Horn
b3e404109c
Move initGraphics and initCommonGFX from to new header.
...
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.
svn-id: r48934
2010-05-04 11:58:12 +00:00
Max Horn
5568a8473b
Get rid of Engine::_gameDataDir.
...
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Johannes Schickel
8ae24a27b3
Yet more Flac -> FLAC changes for consistency.
...
svn-id: r47847
2010-02-03 09:42:40 +00:00
Johannes Schickel
fe35d372da
- Rename FlacStream to FLACStream.
...
- Rename makeFlacStream to makeFLACStream.
svn-id: r47846
2010-02-03 09:42:11 +00:00
Johannes Schickel
a505d32eff
Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
...
svn-id: r47716
2010-01-30 15:26:54 +00:00
Max Horn
1c906a1f08
Hide VagStream implementation, only expose it via a factory method
...
svn-id: r47634
2010-01-28 09:38:21 +00:00
Max Horn
1565f14bc1
Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
...
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
4b996e7de7
Reorder params to Audio::makeRawMemoryStream
...
svn-id: r47492
2010-01-23 23:55:35 +00:00
Max Horn
cebaa0b0d3
Started to get rid of Audio::FLAG_LOOP
...
svn-id: r47397
2010-01-19 23:50:33 +00:00
Max Horn
dc5e08e623
Move raw audio flags from sound/mixer.h to sound/raw.h
...
svn-id: r47395
2010-01-19 22:30:33 +00:00
Fabio Battaglia
bd4e6283af
sword1: removed a leftover semicolon
...
svn-id: r47379
2010-01-19 11:30:41 +00:00
Max Horn
c01ef60cb9
SWORD1: Fix memory leak in PSX audio code (seems to have been there for quite some time?)
...
svn-id: r47378
2010-01-19 11:22:54 +00:00
Max Horn
5ee6c79b5d
Convert more engines from Mixer::playRaw to Mixer::playInputStream
...
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn
b227c660c6
Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream
...
svn-id: r47375
2010-01-19 11:20:58 +00:00
Max Horn
9baa2acdca
SWORD1: Fix (?) sfx looping
...
svn-id: r47370
2010-01-19 00:56:52 +00:00
Max Horn
557bb394de
Get rid of Mixer::FLAG_AUTOFREE.
...
Also fix several recently introduced new/delete vs. malloc/free mismatches.
svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
7ec2da968c
Switch most AudioStream factories to use DisposeAfterUse::Flag
...
svn-id: r47334
2010-01-16 21:36:08 +00:00
Max Horn
a44c6e4323
Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
...
svn-id: r47213
2010-01-09 22:37:10 +00:00
Max Horn
f720d99b0a
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
...
svn-id: r47182
2010-01-08 22:09:43 +00:00
Johannes Schickel
f263393ef0
Fix sound effects in Sword1 PSX, regression from r47132.
...
svn-id: r47176
2010-01-08 21:47:28 +00:00
Torbjörn Andersson
3a163b960e
This should fix bug #2928411 , "SWORD1: Macintosh Demo crashes after Intro".
...
svn-id: r47171
2010-01-08 19:58:47 +00:00
Johannes Schickel
549da55565
Remove custom AiffAudioStream and replace it by the use of makeLoopingAudioStream and makeAIFFStream.
...
svn-id: r47165
2010-01-08 17:42:05 +00:00
Johannes Schickel
aa2f55ddc6
Remove the deprecated FLAC, Vorbis and MP3 factories.
...
svn-id: r47134
2010-01-07 17:14:44 +00:00
Johannes Schickel
a597e5fef9
Make VagStream a RewindableAudioStream.
...
svn-id: r47132
2010-01-07 17:04:01 +00:00
Johannes Schickel
d5fe29c3c9
Make makeWAVStream return a RewindableAudioStream.
...
svn-id: r47129
2010-01-07 16:34:56 +00:00
Marcus Comstedt
40f9506163
The default keycolor for mouse pointers used to be 255.
...
This makes sense as a default for CLUT8 modes, but not really
for anything else. As part of the gsoc2009-16bit merge, the
default was changed to "all ones", with extra code in the SDL
backend to truncate this to the depth of the mode. However,
"all ones" (white) still isn't a very useful default for RGB modes.
So rather than jumping through hoops to provide a bad default,
it's better to remove the default altogether. Engines which relied
on the old default of 255 have been updated to specify it explicitly.
svn-id: r47118
2010-01-07 15:07:36 +00:00
Johannes Schickel
84f3034406
- Move openStreamFile from AudioStream to SeekableAudioStream.
...
- Fix documentation of openStreamFile.
svn-id: r47080
2010-01-06 15:23:33 +00:00
Max Horn
df81b68967
Change BS 1 & 2 to I & II (see discussion on -devel)
...
svn-id: r46951
2010-01-03 21:20:05 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
df651bf20f
Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
...
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +00:00
Torbjörn Andersson
42af771de0
Fixed regression introduced when adding support for looping background sounds.
...
A.k.a. "I played through the whole game looking for regressions, and missed the
one at the intro cutscene?!"
svn-id: r45290
2009-10-20 20:15:13 +00:00
Max Horn
b935f0119a
SWORD1: Resolve FIXME about weird static var 'left' in Router::slidyWalkAnimator
...
svn-id: r45280
2009-10-20 19:11:46 +00:00
Max Horn
08fb97ee59
SWORD1: Resolve FIXME about weird static var 'k' in Router::smoothCheck
...
svn-id: r45279
2009-10-20 19:11:22 +00:00
Filippos Karapetis
422b732dba
Added a new convenience method to the video player, which adds the event of 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-10-16 07:42:23 +00:00
Max Horn
edf6827913
SWORD1: Remove obsolete TODO
...
svn-id: r45100
2009-10-14 23:29:14 +00:00
Max Horn
6a2985ba08
Patch #2834677 : Wave/ADPCM Endianness Fixes
...
svn-id: r45095
2009-10-14 22:37:05 +00:00
Fabio Battaglia
e2db155b1a
sword1: fix one gcc warning about comparison between signed and unsigned
...
svn-id: r44955
2009-10-11 22:34:01 +00:00
Fabio Battaglia
e1dc8452bd
sword1: fix psx demo startup
...
svn-id: r44951
2009-10-11 22:20:58 +00:00
Max Horn
42120ed626
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
...
svn-id: r44793
2009-10-08 19:41:38 +00:00
Johannes Schickel
d134eb73ce
Add missing PACKED_STRUCT attribute to FrameHeader.
...
svn-id: r44614
2009-10-04 15:49:40 +00:00
Andre Heider
bbb3cc8086
If make*Stream failed, the file needs to be closed to prevent an assert on a consecutive open().
...
svn-id: r44557
2009-10-03 19:29:14 +00:00
Willem Jan Palenstijn
5a8b81119b
Fix free/delete/delete[] mismatches. Patch by salty-horse
...
svn-id: r44512
2009-10-01 11:02:23 +00:00
Max Horn
8ba75fc522
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
...
svn-id: r44495
2009-09-30 16:16:53 +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
Filippos Karapetis
6b79910bcb
Fixed some more warnings about unreachable code
...
svn-id: r44300
2009-09-24 10:15:50 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Torbjörn Andersson
9cc0dc3d91
Fixed bug #2847910 , "Loss of background audio loop". It would probably be safe
...
to backport this to the 1.0 branch, but I'm not 100% sure, and it's getting
pretty late here. (On the other hand, the missing sound effects are pretty
faint, at least in the cases I've seen, so we haven't been missing much. That's
probably why it's gone unnoticed until now.)
svn-id: r44073
2009-09-13 21:38:47 +00:00
Torbjörn Andersson
b21b200a95
Clarify things a bit by using the constant name rather than zero.
...
svn-id: r44072
2009-09-13 21:12:05 +00:00
Jordi Vilalta Prat
3337be7b08
Fix indentation
...
svn-id: r43837
2009-08-30 20:50:23 +00:00
Max Horn
e9cd07e582
SWORD1 & SWORD2: Replaced ioFailed by err+eos
...
svn-id: r42912
2009-07-29 21:39:34 +00:00
Torbjörn Andersson
f853376379
Fixed drawing subtitles for cutscenes that are narrower than the screen, and
...
erase the subtitles manually if they are drawn outside the frame.
svn-id: r42859
2009-07-28 17:19:33 +00:00
Johannes Schickel
7e71865e91
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
...
svn-id: r42751
2009-07-25 12:59:46 +00:00
Kari Salminen
264e44d14a
Fix some typos and grammar in sword1's Sound::checkSpeechFileEndianness-function's comments.
...
svn-id: r42477
2009-07-14 13:48:31 +00:00
Kari Salminen
242b7ef708
Fix compilation under Windows (The fabs-calls were causing error C2668 about 'ambiguous call to overloaded function').
...
svn-id: r42440
2009-07-13 17:09:40 +00:00
Eugene Sandulenko
bd91c1129d
Patch #1936137 : "Speech for Mac BS1 english"
...
svn-id: r42423
2009-07-12 18:52:38 +00:00
Max Horn
cbea1a1193
Added more GCC_PRINTF attributes, and fixed resulting warnings in format strings
...
svn-id: r42054
2009-07-03 10:40:49 +00:00
Fabio Battaglia
51d0005af3
sword1: slight cleanup of psx related sound code and comments
...
svn-id: r41380
2009-06-08 17:54:44 +00:00
Fabio Battaglia
14c85028b1
sword1: add Broken Sword PSX demo support
...
svn-id: r41369
2009-06-08 12:37:24 +00:00
Eugene Sandulenko
eb909702af
Add GUI options support to Sky, Queen and Sword1&2 engines (which do not use AD)
...
svn-id: r41274
2009-06-06 17:57:39 +00:00
Torbjörn Andersson
0999534749
The error() and warning() functions add ! and newline automatically. (I didn't
...
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
2009-05-31 10:02:16 +00:00
Max Horn
fb79b18571
Changed SaveFileManager methods to take Common::String params (instead of char pointers)
...
svn-id: r41000
2009-05-29 14:38:22 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
b7f8990ba8
Renamed the DXA, SMK and FLIC video decoders to reflect the fact that they're decoders, not players
...
svn-id: r40759
2009-05-21 13:02:56 +00:00
Filippos Karapetis
6ec870303f
- Reverted commit #40730 , as it introduced rounding errors
...
- 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-20 10:43:18 +00:00
Filippos Karapetis
e358b13ef9
Changed calculations based on frame delay to be based on the scale of 1ms, 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-05-19 19:56:53 +00:00
Max Horn
65b5d31814
COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
...
svn-id: r40725
2009-05-19 11:42:14 +00:00
Travis Howell
789cb98492
Correct translation error.
...
svn-id: r40718
2009-05-19 01:58:51 +00:00
Johannes Schickel
c8aec4c696
SWORD1: Commit of parentheses patch from salty-horse. (from -devel "Enabling -Wparentheses in the Makefile").
...
svn-id: r39762
2009-03-30 12:11:22 +00:00
Filippos Karapetis
3b507db4f0
Silenced some warnings about potentially uninitialized variables
...
svn-id: r39535
2009-03-19 20:38:29 +00:00
Fabio Battaglia
81cfb9ffd5
sword1: clean background buffers before writing on them in psx decoding functions
...
svn-id: r39480
2009-03-17 09:21:14 +00:00
Fabio Battaglia
f7e4f15218
sword1: cleanup
...
svn-id: r39479
2009-03-17 08:22:51 +00:00
Fabio Battaglia
a9da116ceb
sword1: optimize drawing routine for screen 54
...
svn-id: r39477
2009-03-17 08:03:29 +00:00
Fabio Battaglia
3c9b4e0f07
sword1: enable psx background caching for screen 54 (bull's head) too
...
svn-id: r39475
2009-03-17 07:46:04 +00:00
Fabio Battaglia
88ff058bd7
sword1: cache decompressed psx version backgrounds, to avoid uncompressing them at every screen update.
...
svn-id: r39462
2009-03-16 23:10:50 +00:00
Fabio Battaglia
c40d2d2f50
sword1: added caching for train.plx when playing psx version
...
svn-id: r39461
2009-03-16 22:25:37 +00:00
Fabio Battaglia
647276b885
Moving sword1/vag.* into sound/, to be used by Broken Sword 2 PSX
...
svn-id: r39416
2009-03-15 10:25:22 +00:00
Fabio Battaglia
cbfd80a5d1
Fix GMM loading disabled after loading savegame from ScummVM menu
...
svn-id: r39296
2009-03-10 13:48:42 +00:00
Max Horn
e080a59337
Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as some other tweaks
...
svn-id: r39255
2009-03-09 03:45:23 +00:00
Max Horn
f9ecd95d69
Whitespace cleanup: Convert space followed by tab to just tab
...
svn-id: r39203
2009-03-07 19:24:31 +00:00
Jordi Vilalta Prat
047f116515
Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
...
svn-id: r39132
2009-03-05 12:04:58 +00:00
Fabio Battaglia
cdc9f46bd9
sword1: removed custom checks for thumbnails, using graphics/thumbnail.h functions instead
...
svn-id: r39130
2009-03-04 12:44:55 +00:00
Fabio Battaglia
f6028bc822
sword1: disable saving/loading through GMM when in game menu
...
svn-id: r39122
2009-03-04 10:39:12 +00:00
Fabio Battaglia
928a276c04
sword1: enable thumbnails when saving through GMM
...
svn-id: r39121
2009-03-04 10:33:29 +00:00
Fabio Battaglia
1956c1c68f
Added missing checkCd() execution when loading through GMM
...
svn-id: r39096
2009-03-03 21:33:45 +00:00
Fabio Battaglia
7fc8bb81a7
Enabled and hopefully fixed GMM saving/loading for sword1
...
svn-id: r39095
2009-03-03 20:05:00 +00:00
Fabio Battaglia
5f13e5ebcd
Cleaned up some comments
...
svn-id: r39090
2009-03-03 16:27:56 +00:00
Fabio Battaglia
0077889eeb
Add playtime feature support to sword1
...
svn-id: r39083
2009-03-02 22:37:09 +00:00
Fabio Battaglia
2913a561cc
Avoid using unnecessary buffers in psxShrinkedBackgroundToIndexed
...
svn-id: r39074
2009-03-02 13:46:50 +00:00
Fabio Battaglia
ed65593bb3
Avoid using unnecessary buffers in psxBackgroundToIndexed
...
svn-id: r39072
2009-03-02 11:30:23 +00:00
Fabio Battaglia
0233202150
Formatting changes in older PSX related functions
...
svn-id: r39071
2009-03-02 11:12:41 +00:00
Fabio Battaglia
08a2de9447
Changed the way Broken Sword PSX parallax are handled to improve speed
...
svn-id: r39070
2009-03-02 10:59:14 +00:00
Torbjörn Andersson
3429c17ac4
Removed some (the last?) remains of the BS1 MPEG cutscene player.
...
svn-id: r39032
2009-03-01 12:00:44 +00:00
Max Horn
3fcbda829a
Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
...
svn-id: r39002
2009-03-01 04:30:55 +00:00
Paul Gilbert
d3b2a4ede9
Fixed MSVC compiler warning
...
svn-id: r38960
2009-02-28 11:09:38 +00:00
Sven Hesse
78f28d3f30
Shutting up a compiler warning
...
svn-id: r38958
2009-02-28 10:58:46 +00:00
Eugene Sandulenko
440fcb1d5a
Patch #2638336 : Broken Sword PSX Support Part 2 of 2
...
svn-id: r38957
2009-02-28 10:53:45 +00:00
Eugene Sandulenko
5aa50ec889
Patch #2638336 : Broken Sword PSX Support
...
svn-id: r38956
2009-02-28 10:46:33 +00:00
Torbjörn Andersson
53572f6c07
Committed patch #2606844 ("Fix crash when using BS1 without portuguese data").
...
Admittedly, I'm not really that familiar with BS1 resource management, but as
far as I can tell the patch just adds sanity checking, so it shouldn't hurt.
svn-id: r38925
2009-02-27 05:52:22 +00:00
Torbjörn Andersson
349fce7454
Committed a slightly updated patch #2602772 ("Patches for BS1 bug ID #1977094 ")
...
to replace some missing subtitles with hard-coded ones.
svn-id: r38923
2009-02-27 05:20:37 +00:00
Torbjörn Andersson
ab11da0602
Allocate the background sound handle dynamically. Otherwise, it seems to me 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-21 11:27:04 +00:00
Torbjörn Andersson
c3068549da
Cleanup.
...
svn-id: r38680
2009-02-21 11:22:56 +00:00
Torbjörn Andersson
9b2029a7a8
Minor consistency change.
...
svn-id: r38650
2009-02-20 23:47:11 +00:00
Torbjörn Andersson
dbb8ad9da1
If the DXA cutscene audio fails to play for whatever reason (shouldn't happen in
...
BS1 since all the cutscenes have an audio track), assume audio and video are in
sync.
svn-id: r38384
2009-02-16 21:57:22 +00:00
Torbjörn Andersson
a57e773a0e
Removed unnecessary tests. (It's ok to free a NULL pointer.)
...
svn-id: r38344
2009-02-16 06:11:37 +00:00
Torbjörn Andersson
de0c772a01
Blank the palette correctly. (Fixes Valgrind warning.)
...
svn-id: r38343
2009-02-16 06:02:21 +00:00
Willem Jan Palenstijn
d2e8256439
defer BS1 palette update from newScreen to updateScreen, based on patch by eriktorbjorn for bug #2599963 . Maybe suitable for branch-0-13-0 after more testing.
...
svn-id: r38320
2009-02-15 22:33:18 +00:00
Johannes Schickel
5417f6bacb
- Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
...
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.
svn-id: r38304
2009-02-15 21:20:21 +00:00
Filippos Karapetis
2ef26fcd4a
Oops, fixed Smacker video playing in BS1
...
svn-id: r38237
2009-02-15 13:43:44 +00:00
Filippos Karapetis
781d7da6b1
Applied my patch for the BS1/2 video player
...
- 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-15 13:29:48 +00:00
Willem Jan Palenstijn
af900a2e14
clear full screen before playing movie in BS1 ( fixes #2599573 )
...
svn-id: r36334
2009-02-14 18:34:10 +00:00
Torbjörn Andersson
6d70045228
Fixed bug #2599531 ("SWORD1: truck.dxa plays striped"). The last parameter to
...
copyFrameToBuffer() is the pitch of the destination buffer, not the frame.
svn-id: r36330
2009-02-14 15:52:31 +00:00
Max Horn
716f88f571
Avoid using g_engine if possible
...
svn-id: r36149
2009-01-30 16:04:39 +00:00
Max Horn
341bc64aaf
do not include common/debug.h from common/util.h
...
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
abc06ca18e
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
...
svn-id: r35993
2009-01-22 04:35:10 +00:00
Torbjörn Andersson
a2c671da97
Clear the list of savegames before re-populating it. Otherwise, even save names
...
that have been entered before cancelling the dialog will remain in it.
svn-id: r35987
2009-01-21 20:00:26 +00:00
Torbjörn Andersson
248605800e
Don't allow the nul character in savegame names, since that terminates the
...
string. This happens, for instance, when pressing the Shift key. (I usually start
my savegame names with an upper-case letter, and I couldn't understand why it
didn't seem to register any of my keypresses.)
svn-id: r35986
2009-01-21 19:46:51 +00:00
Filippos Karapetis
4b24b4d06f
Updated SWORD1 with the latest changes to video players
...
svn-id: r35760
2009-01-06 17:49:41 +00:00
Johannes Schickel
690b88f982
Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> gui/GuiManager.h
...
svn-id: r35668
2009-01-02 03:21:40 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
df20d264fd
Pushing down some header deps (on common/system.h, mostly)
...
svn-id: r35542
2008-12-25 20:40:00 +00:00
Eugene Sandulenko
829cbc4110
Move all video players to separate directory
...
svn-id: r35470
2008-12-21 21:08:17 +00:00
Travis Howell
9c20a533bb
Enable Smacker support, and switch later HE games to Smacker support (since they aren't supported yet).
...
svn-id: r35368
2008-12-14 23:41:48 +00:00
Johannes Schickel
3bdef4f9a2
Fixed compilation.
...
svn-id: r35200
2008-12-01 21:35:17 +00:00
Max Horn
4b7d455580
Got rid of Stream::readLine_OLD calls in two places (mostly untested, please check/test for regressions)
...
svn-id: r35198
2008-12-01 21:13:02 +00:00
Torbjörn Andersson
72a847797d
Committed by patch #2219361 ("BS1: Simplified subtitles"). It uses the
...
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-18 17:48:19 +00:00
Johannes Schickel
d99ab163cc
Fixed meta engine related save functions (some where relying on "target.???" instead of "sword1.???").
...
svn-id: r35113
2008-11-18 17:03:55 +00:00
Filippos Karapetis
2463c550ac
Reverted to old behavior: save games for sword1 can be shared again across all versions (since they're exactly the same) - they're now named sword1.* and no longer named after the game ID
...
svn-id: r35112
2008-11-18 16:57:57 +00:00
Filippos Karapetis
7650b61d27
Applied a slightly modified version of my patch #2307224 - "BS1: Save/load overhaul"
...
svn-id: r35111
2008-11-18 16:31:55 +00:00