Commit Graph

934 Commits

Author SHA1 Message Date
md5
28dae010fb SAGA: Fixed palette setting inside Gfx::setPaletteColor() (thanks to LordHoto for noticing this) 2011-02-20 00:19:08 +02:00
Johannes Schickel
1606ff1d4e SAGA: Convert Gfx::palFade to the setPalette RGBA->RGB change too. 2011-02-19 19:57:19 +01:00
Johannes Schickel
6d2c323050 SAGA: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Filippos Karapetis
9b8c04045b MIDI: Fix for bug #3170988 - "MONKEY2: Messed up MT-32 music"
This is a regression from r55256. Apparently, SCUMM has issues when sending a sustain
off on a notes off event. Thus, this has been turned into a feature, which is disabled
by default. Since MADE, SAGA and tinsel all share the same music code and play regular
MIDI files, and this feature fixes hanging notes for them, it has been enabled for them.
Also, applied a patch for a bug regarding the notes off event in MADE and tinsel,
which has been applied in SAGA already

svn-id: r55746
2011-02-02 23:27:59 +00:00
Filippos Karapetis
4a07ae6829 SAGA: Simplified loadActorResources() and removed the unused _disabled field
svn-id: r55687
2011-01-31 16:11:49 +00:00
Filippos Karapetis
dce4f404e6 SAGA: Fixed compilation with MSVC
svn-id: r55683
2011-01-31 14:05:47 +00:00
Filippos Karapetis
7cc8d8d403 SAGA: Fixed compilation
svn-id: r55680
2011-01-31 12:01:24 +00:00
Filippos Karapetis
83d7ac7e1f SAGA: Fixed some typos, and removed an obsolete comment
svn-id: r55679
2011-01-31 11:45:24 +00:00
Filippos Karapetis
8bd7ace4d2 SAGA: Split the resource patching code into appropriate game-specific resource methods
svn-id: r55678
2011-01-31 11:40:40 +00:00
Filippos Karapetis
e0314f9ecd SAGA: Turned several unnecessarily inherited classes into typedefs
svn-id: r55677
2011-01-31 11:36:14 +00:00
Filippos Karapetis
90d58cf487 SAGA: Rewrote the MacBinary resource loading code
This simplifies the overall code and makes it easier to understand. Also, a bug with the
speech in the MacBinary packed version has been corrected, so there are no more clicking
sounds before each sample.
The Common::MacResMan code isn't really useful here, since it doesn't expose the offsets
and sizes of the actual files, which is what is needed in SAGA.

svn-id: r55674
2011-01-31 10:46:52 +00:00
Eugene Sandulenko
caa6684752 VIDEO: Move video classes to Video:: namespace
svn-id: r55479
2011-01-23 19:08:09 +00:00
Eugene Sandulenko
806ccf5d25 GRAPHICS: Move graphics/video/ to video/. Step 1/2
svn-id: r55473
2011-01-23 17:14:43 +00:00
Willem Jan Palenstijn
46befe8492 SAGA: Include scummsys.h to force rebuild after reconfigure
svn-id: r55155
2011-01-08 03:14:31 +00:00
Matthew Hoops
375f32fbe9 VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
svn-id: r54927
2010-12-16 01:35:13 +00:00
Max Horn
12d5151ff4 COMMON: Remove default value for endianess in ReadStreamEndian subclasses
svn-id: r54441
2010-11-23 22:27:20 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
a008d14055 ENGINES: Do not use MemoryReadStream where (Seekable)ReadStream suffices; avoid using 'using'
svn-id: r54323
2010-11-18 16:38:03 +00:00
Max Horn
82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).

The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.

svn-id: r54147
2010-11-08 22:53:36 +00:00
Andrew Kurushin
0970cdf5e5 SAGA: reduce memory usage
svn-id: r53782
2010-10-24 22:52:57 +00:00
Andrew Kurushin
599094d3a0 SAGA: fix SAGA_DEBUG; fix IHNM cutaway typo
svn-id: r53781
2010-10-24 22:40:37 +00:00
Andrew Kurushin
0f1ae79ac4 SAGA: fix const cast warns
svn-id: r53780
2010-10-24 22:25:16 +00:00
Andrew Kurushin
67cc1b8a84 SAGA: replace Resource:loadResource malloc with ByteArray class
svn-id: r53779
2010-10-24 22:17:44 +00:00
Andrew Kurushin
e3ea3b5b7e SAGA: replace Scene::_resourceList, Interface::_inventory malloc arrays with Common::Array
svn-id: r53773
2010-10-24 20:22:21 +00:00
Andrew Kurushin
fa7e8a8eb3 SAGA: replace Actor::_actors and _objs malloc base arrays with Common::Array
svn-id: r53766
2010-10-24 17:42:45 +00:00
Max Horn
c975ed11a1 ALL: Fix various typos (patch #3093266)
svn-id: r53762
2010-10-24 13:04:33 +00:00
Andrew Kurushin
b10cd22d51 SAGA: replace Events malloc base linked list with Common::List
svn-id: r53751
2010-10-23 23:07:10 +00:00
Andrew Kurushin
5b7c5e4298 SAGA: fix typo
svn-id: r53750
2010-10-23 22:04:51 +00:00
Andrew Kurushin
405c523bbb SAGA: replace decodeBGImage malloc with ByteArray
svn-id: r53748
2010-10-23 21:56:16 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Max Horn
efcfb40da9 SAGA: Add some const qualifiers to SagaEngine methods
svn-id: r53737
2010-10-23 15:45:22 +00:00
Max Horn
da31121507 SAGA: Improve comment for ByteArray::getBuffer()
svn-id: r53736
2010-10-23 15:44:55 +00:00
Andrew Kurushin
9f2e7d5ff5 SAGA: fix gcc size_t warns
svn-id: r53722
2010-10-22 23:33:56 +00:00
Andrew Kurushin
f24394b85f SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation
add ByteArray type
fix debug Tile Hittest frame drawing
debug 0x%x => 0x%X

svn-id: r53719
2010-10-22 23:13:17 +00:00
Andrew Kurushin
521eb95aea SAGA: fix gcc warn
svn-id: r53679
2010-10-21 22:35:57 +00:00
Andrew Kurushin
8b72f49460 SAGA: replace Script and Thread "::*alloc" & "::free" with Common::Array
svn-id: r53678
2010-10-21 22:32:50 +00:00
Andrew Kurushin
c1505d6e51 SAGA: unroll IsoMap::drawTile buffer copy loop; refactor Sprite::drawClip
svn-id: r53677
2010-10-21 20:13:25 +00:00
Max Horn
d8c1251f88 SAGA: Fix warning: comparison of unsigned expression < 0 is always false
svn-id: r53660
2010-10-20 23:58:34 +00:00
Andrew Kurushin
d97d21e029 SAGA: replace Sprite "::*alloc" & "::free" with Common::Array
svn-id: r53658
2010-10-20 22:02:33 +00:00
Andrew Kurushin
1bd1a253f0 SAGA: replace Font "::*alloc" & "::free" with Common::Array
svn-id: r53656
2010-10-20 21:23:02 +00:00
Andrew Kurushin
6be5d2554d SAGA: replace StringTable "::realloc" with Common::Array; reduce amount of memory for every string table
svn-id: r53651
2010-10-20 20:53:32 +00:00
Torbjörn Andersson
28a98c7416 SAGA: Silence warning
svn-id: r53632
2010-10-20 03:54:33 +00:00
Andrew Kurushin
e4029f6f0e SAGA: SAGA: replace SpriteList "::realloc" with Common::Array
svn-id: r53628
2010-10-19 22:29:53 +00:00
Andrew Kurushin
bfb0986cd4 SAGA: replace Actors "::realloc" with Common::Array
svn-id: r53627
2010-10-19 21:40:24 +00:00
Andrew Kurushin
0e7abce271 SAGA: fix submit 53486 "Added sanity checks for realloc() calls - bug report #3087852". zero count realloc may return NULL as valid value
svn-id: r53614
2010-10-19 15:31:07 +00:00
Filippos Karapetis
c1e47e0e60 SAGA: Added sanity checks for realloc() calls - bug report #3087852
svn-id: r53486
2010-10-15 12:56:17 +00:00
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00