Commit Graph

14570 Commits

Author SHA1 Message Date
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
Martin Kiewitz
519e80ca8b SCI: implemented additional drawCel for hires views, fixes menu bar of kq6 - still need to fix coordinates and implement save/restoreBits for hires
svn-id: r47116
2010-01-07 14:46:29 +00:00
Martin Kiewitz
5b063e2d93 SCI: releasing sample stream as well (thx to LordHoto)
svn-id: r47115
2010-01-07 14:39:42 +00:00
Johannes Schickel
b80779824f - Strip custom looping code out of FLAC, Vorbis and MP3 streams
- Adapt the legacy make*Stream factories to use the new AudioStream subclasses
- Change return value of make*Stream back to AudioStream *

svn-id: r47111
2010-01-07 14:22:24 +00:00
Martin Kiewitz
4701d0799c SCI: small cleanup in view drawing
svn-id: r47108
2010-01-07 13:56:56 +00:00
Martin Kiewitz
12cd066e44 SCI: fixed stupid bug in putPixelOnDisplay, fixes height of displayed hires graphics in kq6
svn-id: r47107
2010-01-07 13:30:08 +00:00
Vladimir Menshakov
c37e772b8c cleaned up player, fixed invalid delete's and memory leaks
svn-id: r47106
2010-01-07 12:01:33 +00:00
Martin Kiewitz
58aab46f06 SCI: some portrait work (kq6 now shows the main bitmap as portrait, coordinates still messed up)
svn-id: r47105
2010-01-07 10:31:29 +00:00
Vladimir Menshakov
74b998657d do not render overlays over the animation sequences
svn-id: r47104
2010-01-07 10:22:31 +00:00
Eugene Sandulenko
413b4291b4 Fix warnings.
svn-id: r47101
2010-01-06 22:24:52 +00:00
Joost Peters
17feb75ae7 add new robot.cpp file
svn-id: r47100
2010-01-06 22:04:27 +00:00
Martin Kiewitz
1bea3e3873 SCI: added a new class for robot resources
svn-id: r47099
2010-01-06 21:56:31 +00:00
Vladimir Menshakov
1779a44882 better clipping for left/top sides
svn-id: r47098
2010-01-06 21:16:11 +00:00
Vladimir Menshakov
d2978e3d92 added hardcoded height value
svn-id: r47097
2010-01-06 21:03:52 +00:00
Martin Kiewitz
72ecf8b61e SCI: add robot/.rbt files to resourcemanager class
svn-id: r47096
2010-01-06 20:54:18 +00:00
Vladimir Menshakov
dfc039e4be better z-ordering for the mark's animation
svn-id: r47095
2010-01-06 20:49:16 +00:00
Vladimir Menshakov
1f12957a50 fixed special agents blink
svn-id: r47094
2010-01-06 20:39:17 +00:00
Vladimir Menshakov
b6b8a23cee implemented clipping for mark
svn-id: r47092
2010-01-06 20:25:07 +00:00
Walter van Niftrik
fc582c0e59 SCI: Fix overflow in LZS decompressor
svn-id: r47090
2010-01-06 20:22:00 +00:00
Martin Kiewitz
edc7fcf121 SCI: sync displayScreen with framebuffer after successful video playback (fixes background vanishing in mainmenu of gk1demo)
svn-id: r47089
2010-01-06 18:59:39 +00:00
Martin Kiewitz
11d9f15010 SCI: search for %J in text resources to identify japanese games, switch to upscaled hires when japanese games are started, removed TODO
svn-id: r47088
2010-01-06 18:25:43 +00:00
Filippos Karapetis
254850aa23 - Some work on kLocalToGlobal and kGlobalToLocal for SCI2+
- Removed the custom types MemoryHandle, LoopNo, CelNo (cause we ended up having code like LoopNo loopNo = ...)
- Improved the sanity checks in frameOut()

svn-id: r47087
2010-01-06 17:25:54 +00:00
Filippos Karapetis
9a99226d31 Removed a hack from the fallback detector, used to distinguish some demos from their full versions
svn-id: r47086
2010-01-06 16:39:48 +00:00
Vladimir Menshakov
c58c870159 removed all magic about mark's velocity
svn-id: r47084
2010-01-06 16:09:57 +00:00
Johannes Schickel
297a955579 - Simplify Audio::calculateSampleOffset.
- Made Audio::calculateSampleOffset accessable from outside audiostream.cpp.
- Adapt KYRA's AUDStream to use Audio::calculateSampleOffset.

svn-id: r47082
2010-01-06 15:40:49 +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
Filippos Karapetis
027fe079c9 The error inside execute_method() has been restored, it's only a warning for SCI2+ games for now, till we figure out what's wrong
svn-id: r47079
2010-01-06 14:04:56 +00:00
Martin Kiewitz
9272822486 SCI: initPriorityBands() now aborts when getting called and screen size is not 320x200
svn-id: r47078
2010-01-06 13:26:53 +00:00
Martin Kiewitz
07ce38db5f SCI: changed screenHeight to 200 fixed inside initPriorityBands() because the algo is meant to work on lowres only
svn-id: r47077
2010-01-06 13:22:36 +00:00
Filippos Karapetis
ce5320d814 SCI2+ games no longer use priority bands (fixes memory leaks in true hires games, too)
svn-id: r47076
2010-01-06 13:11:10 +00:00
Martin Kiewitz
7d7d23ce2b SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
2010-01-06 13:05:14 +00:00
Filippos Karapetis
86c1171b11 Removed one more hardcoded screen dimension
svn-id: r47074
2010-01-06 12:55:51 +00:00
Filippos Karapetis
3d3d0dee1b SCI2.1 and newer games always run at 640x480
svn-id: r47073
2010-01-06 12:21:27 +00:00
Filippos Karapetis
bcf7535c97 Removed all hardcoded screen sizes
svn-id: r47072
2010-01-06 12:17:03 +00:00
Vladimir Menshakov
69566f6bf1 do not interrupt any actions (test for wii)
svn-id: r47069
2010-01-06 10:11:38 +00:00
Vladimir Menshakov
427a15cd05 minor cleanups
svn-id: r47068
2010-01-06 09:38:56 +00:00
Johannes Schickel
668f6e5de8 Adapt TOUCHE to use the new FLAC, Vorbis and MP3 factories (it didn't use any looping features anyway).
svn-id: r47066
2010-01-06 00:02:19 +00:00
Johannes Schickel
5243157eb1 Adapt digital iMuse to use SeekableAudioStream::seek, instead of ryling on the deprecated FLAC, Vorbis and MP3 interface.
svn-id: r47064
2010-01-06 00:01:27 +00:00
Johannes Schickel
fb9017c51e Adapt SAGA to use Mixer::playAudioStreamLooping instead of relying the depracted in AudioStream looping support.
svn-id: r47063
2010-01-06 00:00:50 +00:00
Johannes Schickel
0e420431fd Adapt KYRA to use the new FLAC, Vorbis and MP3 factories.
svn-id: r47062
2010-01-06 00:00:25 +00:00
Johannes Schickel
81a94a0644 - Put the new factories for MP3, Vorbis and FLAC in place.
- Marked the loop factories with loop related parameters as deprecated.

svn-id: r47061
2010-01-05 23:59:28 +00:00
Johannes Schickel
79ee2b0895 Properly adapt AUDStream to be a SeekableAudioStream and switched KYRA3 to use playAudioStreamLooping for its looping purposes.
svn-id: r47060
2010-01-05 23:05:31 +00:00
Vladimir Menshakov
711fada15c added logs about EVENT_RTL
svn-id: r47059
2010-01-05 22:23:58 +00:00
Johannes Schickel
88b4bbb952 Fix broken Scumm dialogs, which is a regression from r46947. (They used a dummy name, which didn't exist in the theme config and later on just calculated the size on their own...)
svn-id: r47057
2010-01-05 22:18:09 +00:00
Vladimir Menshakov
841e2d3424 separate timers for mark, scene and messages.
svn-id: r47056
2010-01-05 22:09:16 +00:00
Martin Kiewitz
d183420c86 SCI: implemented debug command "set_palette"
svn-id: r47047
2010-01-05 21:25:59 +00:00
Filippos Karapetis
3e911cd6e8 Changed an error to a warning in execute_method(), so that Torin's Passage scripts continue running (and crash at some later point)
svn-id: r47044
2010-01-05 21:05:32 +00:00
Martin Kiewitz
be9507fcb1 SCI: implemented new debug command "draw_cel"
svn-id: r47043
2010-01-05 21:03:33 +00:00
Vladimir Menshakov
7e5a7533ca more accurate timings.
svn-id: r47042
2010-01-05 20:58:41 +00:00
Martin Kiewitz
8bafb71df3 SCI: remove lowres limit from picture class, makes hires sci32 pictures work
svn-id: r47041
2010-01-05 20:52:19 +00:00