Commit Graph

36400 Commits

Author SHA1 Message Date
Eugene Sandulenko
59d4f14f39 Fix bug #2929619: "IHNM: Small problem detecting German version"
svn-id: r47255
2010-01-11 19:22:19 +00:00
Filippos Karapetis
61e792319d Don't update the screen twice while waiting
svn-id: r47254
2010-01-11 16:33:00 +00:00
Filippos Karapetis
33db6acd7f Changed all kGraph calls which handle rectangles to use kGraphCreateRect(). Also, changed kGraphCreateRect() to return a rect, rather than update a rect pointer
svn-id: r47253
2010-01-11 16:28:46 +00:00
Filippos Karapetis
70694f9858 New music code: Implemented sound stopping after fading, and disabled MIDI sound volume fading, till we figure out what's wrong with fading in the Sierra logo screen in GK1
svn-id: r47252
2010-01-11 14:26:13 +00:00
Filippos Karapetis
6d53dfe917 Some portrait-related changes, to be used when portrait loading/unloading is done. Also, added a comment on where the class is used
svn-id: r47251
2010-01-11 14:12:52 +00:00
Filippos Karapetis
6a07bbd5f4 Moved all the cache limits inside helpers.h and removed an obsolete TODO
svn-id: r47250
2010-01-11 12:23:04 +00:00
Fabio Battaglia
4400bac9ad N64: optimizations in cursor drawing code
svn-id: r47249
2010-01-11 11:37:11 +00:00
Paul Gilbert
002310f8c0 Added MSVC warning 4355 ignore for the M4 project
svn-id: r47248
2010-01-11 11:34:43 +00:00
Filippos Karapetis
51afa7b0b6 - Set the palette inside doit() again
- Removed a now obsolete TODO
- Portrait animations are now stopped when the Esc key is pressed, or when the engine should quit

svn-id: r47247
2010-01-11 10:59:52 +00:00
Filippos Karapetis
fc8fc3a664 The portrait file data is now freed after the portrait animation is done
svn-id: r47246
2010-01-11 10:37:32 +00:00
Filippos Karapetis
4996b7a7d4 Cleanup, fixed a memory leak
svn-id: r47245
2010-01-11 10:31:40 +00:00
Max Horn
590481b12d Improve support for negative Timestamps, and add + and - operators
svn-id: r47244
2010-01-11 10:17:55 +00:00
Max Horn
87cdc86580 MADE: Use Mixer::getElapsedTime and Audio::Timestamp instead of Mixer::getSoundElapsedTime
svn-id: r47243
2010-01-11 10:17:23 +00:00
Fabio Battaglia
5b043140ff N64: a few optimizations in framebuffer drawing code
svn-id: r47242
2010-01-11 09:34:20 +00:00
Filippos Karapetis
009b86e8cb - Don't set the palette per portrait frame - setting the whole screen palette is a very expensive operation, and shouldn't be done on each frame, especially when all of the frames use the same palette
- Cleanup

svn-id: r47241
2010-01-11 09:30:41 +00:00
Filippos Karapetis
8c4e0de67d Hide the mouse cursor while a video is being played
svn-id: r47240
2010-01-11 09:28:00 +00:00
Walter van Niftrik
403c2f31bb SCI: Fix default optimization level in AvoidPath
svn-id: r47239
2010-01-10 23:55:15 +00:00
Fabio Battaglia
9a18bfc22f Nintendo64: use newlines when printing assert messages, to avoid wrapping
svn-id: r47238
2010-01-10 22:30:12 +00:00
Filippos Karapetis
a637f50862 Silenced warnings ("this" isn't defined on object instantiation, and commented out some unused variables)
svn-id: r47237
2010-01-10 21:13:38 +00:00
Joost Peters
2ae12749a9 fix #2926655: "Teenagent: Inventory problems on BE systems"
svn-id: r47236
2010-01-10 20:58:59 +00:00
Fabio Battaglia
ecff81544c remove unneeded workaround for #47233
svn-id: r47234
2010-01-10 18:11:36 +00:00
Johannes Schickel
52fb0c59da Fix bug in Engine::pauseEngine (this should fix #2912148 "Using virtual keyboard in menu mutes audio")
svn-id: r47233
2010-01-10 18:09:49 +00:00
Fabio Battaglia
8703b6929f Mark the 'fix' in r47231 as a workaround for a probably deeper problem.
svn-id: r47232
2010-01-10 17:58:44 +00:00
Fabio Battaglia
09a2694f6f Check if game engine is already paused before pausing it again to show virtual keyboard. Fixes #2912148
svn-id: r47231
2010-01-10 17:49:05 +00:00
Johannes Schickel
27957570bf Typo.
svn-id: r47230
2010-01-10 15:43:42 +00:00
Johannes Schickel
bfed78a5db Add some more comments.
svn-id: r47229
2010-01-10 15:42:22 +00:00
Johannes Schickel
59471e3f43 Fix missing type forward declaration in voc.h.
svn-id: r47228
2010-01-10 15:30:31 +00:00
Johannes Schickel
0447a7f9f8 Fix a memory leak.
svn-id: r47227
2010-01-10 15:23:35 +00:00
Johannes Schickel
6ca0570fe3 - Add a SubLoopingAudioStream, which loops a nested part of a stream and thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream.
- Remove custom looping code from LinearMemoryStream and LinearDiskStream.
- Adapt various client code to the changes.

svn-id: r47226
2010-01-10 15:20:14 +00:00
Martin Kiewitz
bda3fc940c SCI: kPortrait - abort on mouse presses only
svn-id: r47225
2010-01-10 13:22:45 +00:00
Martin Kiewitz
4122e411d0 SCI: kPortrait - mouse click now aborts portrait
svn-id: r47224
2010-01-10 13:11:53 +00:00
Martin Kiewitz
d2d740af2a SCI: fixed typo when getting resourceId on kPortrait call - fixes resource not found in kq6 within pawn shop
svn-id: r47223
2010-01-10 11:33:10 +00:00
Martin Kiewitz
156e341e9b SCI: kPortrait - error() out when resource could not be found
svn-id: r47222
2010-01-10 11:29:58 +00:00
Martin Kiewitz
7a5c119930 SCI: ignore hiresMode when not being upscaledHires for kDrawCel and updateBox on kGraph - fixes kq6 dos
svn-id: r47221
2010-01-10 11:21:55 +00:00
Martin Kiewitz
c371c39568 SCI: changed SoundResource constructor to set values for digitalChannelNr/digitalSampleRate and digitalSampleSize at any time
svn-id: r47220
2010-01-10 11:01:36 +00:00
Martin Kiewitz
231e122c63 SCI: updateBox now also supports hires mode
svn-id: r47219
2010-01-10 09:42:55 +00:00
Martin Kiewitz
7d16dbeb35 SCI: changed location of hack inside kDrawCel, coordinates of savedhiresbox may not get port adjusted
svn-id: r47218
2010-01-10 09:07:09 +00:00
Martin Kiewitz
da09ee6732 SCI: switching to hires kDrawCel when 8th parameter is passed, fixed kDrawCel port adjust - fixes kq6 hires inventory
svn-id: r47217
2010-01-10 08:55:19 +00:00
Robert Špalek
96068d30d9 Handle properly shouldQuit()
svn-id: r47215
2010-01-10 01:25:37 +00:00
Martin Kiewitz
2c1ef90b87 SCI: kPortrait - now drawing after wait, also using gui wait so mouse cursor still works during execution, makes lip sync perfect (thx to the other fix by fingolfin)
svn-id: r47214
2010-01-09 23:01:38 +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
4a832ceb01 Fix Timestamp::addMsecs; some cleanup
svn-id: r47212
2010-01-09 22:36:32 +00:00
Martin Kiewitz
8fdf6a8095 SCI: kPortrait - drawing base bitmap before drawing animation bitmap
svn-id: r47211
2010-01-09 21:20:39 +00:00
Martin Kiewitz
6619d95f48 kPortrait: found the coordinate offsets, corrected actual bitmap size (sometimes extra bytes are appended per line) animation bitmaps now valid
svn-id: r47210
2010-01-09 21:12:08 +00:00
Martin Kiewitz
c73927ee4c SCI: deleting _bitmaps and unlocking sync resource in kPortrait
svn-id: r47208
2010-01-09 20:43:24 +00:00
Martin Kiewitz
273da184ee SCI: kPortrait - animation included, doesnt seem right currently coordinate offset is missing (cause i cant find it) and mouth movement doesnt seem right...at least the basics work and graphic data is fine
svn-id: r47206
2010-01-09 20:38:22 +00:00
Willem Jan Palenstijn
ac66783b5f Register default setting for 'mute' option
svn-id: r47205
2010-01-09 19:32:39 +00:00
Martin Kiewitz
7f78815e0e SCI: kPortrait almost fully implemented (animation bitmaps still missing)
svn-id: r47204
2010-01-09 19:12:53 +00:00
Johannes Schickel
9c2fa534d1 Implement some safer handling of the "Extended" block in VOC files.
svn-id: r47203
2010-01-09 18:51:25 +00:00
Martin Kiewitz
30d787a829 SCI: adding audio support to kPortrait, audio is now playing when portraits are shown
svn-id: r47202
2010-01-09 18:18:52 +00:00