Commit Graph
7940 Commits
Author SHA1 Message Date
Martin Kiewitz 59a255226f SCI: SCI_SCREEN_MASK_* now GFX_SCREEN_MASK_*, using enum - added new enum GFX_SCREEN_UPSCALED_*
svn-id: r49039
2010-05-15 08:57:13 +00:00
Filippos Karapetis 6d38cf8b8f Made locateVarSelector() a method of the Object class
svn-id: r49031
2010-05-14 15:23:42 +00:00
Filippos Karapetis 25bac3bef4 Silenced some MSVC warnings
svn-id: r49030
2010-05-14 15:21:00 +00:00
Martin Kiewitz 94f1af2b44 SCI: if no priority is set (=255) and a cel is embedded in picture vector data -> set priority to 0, fixes kq5/amiga - first scene not showing
svn-id: r49029
2010-05-14 11:49:09 +00:00
Martin Kiewitz c083ce2879 SCI: fix window, when its too large for screen (fixes sq3 crash at ending, actually caused by script bug)
svn-id: r49028
2010-05-13 22:04:53 +00:00
Martin Kiewitz 38c661bfac SCI: fix regression of r49026 - line between titlebar and actual window was overdrawn
svn-id: r49027
2010-05-13 21:29:32 +00:00
Martin Kiewitz a5f59ccdae SCI: remove hack code for shadows and implement them properly (shadow is actually part of the window, not added onto the window) - fixes especially lsl5
svn-id: r49026
2010-05-13 21:14:37 +00:00
Martin Kiewitz 070b2e14fe SCI: don't adjust new windows to _wmgrPort for oldGfxFunctions() games (till kq4 .502), fixes all window positions for those especially sq3old speech bubble windows
svn-id: r49025
2010-05-13 20:19:54 +00:00
Martin Kiewitz faffc57136 SCI: removing one assert() from view loading, cause view 260 in kq6 really contains a celCount == 0 o_O
svn-id: r49024
2010-05-13 15:49:52 +00:00
Martin Kiewitz 86cd5b71fc SCI: adding some more assert()s in view data loading for clone :D
svn-id: r49023
2010-05-13 15:39:20 +00:00
Johannes Schickel 983c41bea2 Remove useless const on a value return type.
svn-id: r49022
2010-05-13 13:32:12 +00:00
Martin Kiewitz 49d41d891b SCI: figured out weird special mac sci1.1 view decompression (currently commented out for clone2727)
svn-id: r49020
2010-05-13 12:29:55 +00:00
Martin Kiewitz 7329e815af SCI: header size within sci1.1+ views doesn't include the actual header size word, adjust accordingly (should make mac view support possible now)
svn-id: r49019
2010-05-12 21:28:38 +00:00
Martin Kiewitz 6f46d00a0a SCI: changed behaviour for kDisplay change (r49012) to use oldGfxFunctions (.502), which isn't 100% accurate (should be .566) but better than not restoring for whole SCI0LATE
svn-id: r49017
2010-05-12 20:13:48 +00:00
Martin Kiewitz b50af74703 SCI: tracked down the kDisplay change, added comment about that
svn-id: r49016
2010-05-12 19:56:50 +00:00
Martin Kiewitz 579a19fbc4 SCI: fix code that was commented out (wasn't meant to get commited that way) during cleanup r47745
svn-id: r49015
2010-05-12 19:46:24 +00:00
Martin Kiewitz a9e5f65376 SCI: added comments about r49012, change actually happened during sci0late
svn-id: r49014
2010-05-12 16:36:08 +00:00
Martin Kiewitz 9d3c8d4910 SCI: dont restore port settings for SCI0 games (fixes sq3 wrong font used when scanning for planets)
svn-id: r49012
2010-05-12 11:55:39 +00:00
Matthew Hoops 47d6284c83 ListIndexOf can have a null object reference, so adjust its signature. GK1 no longer crashes when right clicking in the inventory.
svn-id: r49009
2010-05-12 01:22:37 +00:00
Martin Kiewitz b05694b529 SCI: fix crash/heap issue when saving games (change was actually made by waltervn)
svn-id: r49007
2010-05-11 16:16:49 +00:00
Martin Kiewitz a5ed930340 SCI: remove unneeded _mutex lock to fix deadlock issue
svn-id: r49006
2010-05-11 16:15:21 +00:00
Martin Kiewitz a9a56d50f0 SCI: init _sysPaletteChanged
svn-id: r49003
2010-05-11 11:44:17 +00:00
Martin Kiewitz a31de2adfa SCI: set signal to SIGNAL_OFFSET, when a music slot is played that doesn't contain supported data - fixes lsl5 mud wrestling "regression" in new music/sound code (worked before with old music/sound engine)
svn-id: r49000
2010-05-10 20:32:55 +00:00
Matthew Hoops 7344ac20d7 Add support for loading SCI games from Mac resource forks. The games themselves do not work yet as some (not all) of the data is in BE order instead of LE. They currently error out because it thinks the relocation block is outside of the script.
svn-id: r48998
2010-05-10 18:29:13 +00:00
Max Horn 970745e60c Move DebugChannel related code to new header
svn-id: r48935
2010-05-04 11:59:22 +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
Martin Kiewitz c5f94872a7 SCI: kPortrait - correctly jump over offset table to land on raw lipsync data in portrait files
svn-id: r48928
2010-05-04 08:54:07 +00:00
Martin Kiewitz b07a88548f SCI: set signal in SCI0/SCI01 games, when samples have been played only. fixes sq3 guys from andromeda, but also doesn't screw up music in sq3new/kq1 - added comments about this issue
svn-id: r48918
2010-05-03 17:54:47 +00:00
Martin Kiewitz c67344d380 SCI: reverting r48805 - caused regression in sq3new/kq1
svn-id: r48915
2010-05-03 16:47:09 +00:00
Martin Kiewitz 1060b82f18 SCI: copying over compressed audio (mp3/ogg/flac) buffers, because resourcemanager may free the memory at any time - fixes pseudo-random crashes - also added several assert()s after multiple malloc()s
svn-id: r48912
2010-05-03 15:10:25 +00:00
Martin Kiewitz 98aa8b195a SCI: fix possible heap error
svn-id: r48908
2010-05-03 13:55:49 +00:00
Martin Kiewitz b4d35b3279 SCI: calculate sampleLen for WAVEs as well
svn-id: r48906
2010-05-03 13:30:09 +00:00
Martin Kiewitz df679afe19 SCI: calculate sampleLen for compressed audio (mp3/ogg/flac) as well
svn-id: r48903
2010-05-03 11:58:45 +00:00
Martin Kiewitz 561ad56616 SCI: make audio decompression (mp3/ogg/flac) work on BE devices
svn-id: r48889
2010-05-02 10:21:02 +00:00
Martin Kiewitz 0cd0d8bafe SCI: fix sync resources not loading correctly when compressed (mp3/ogg/flac) audio resource file was used
svn-id: r48881
2010-05-01 14:51:57 +00:00
Martin Kiewitz e3ac8713e3 SCI: fix bugs in audio decompression (mp3, ogg, flac)
svn-id: r48880
2010-05-01 14:04:48 +00:00
Martin Kiewitz beba3bf8a4 SCI: animate cleanup
svn-id: r48876
2010-04-30 15:08:51 +00:00
Matthew Hoops 3b401eb53c Silence gcc warnings.
svn-id: r48858
2010-04-29 19:06:49 +00:00
Martin Kiewitz 6e6b90f41c SCI: remove unneeded #includes from resource.cpp
svn-id: r48857
2010-04-29 19:01:06 +00:00
Martin Kiewitz 13ee099090 SCI: audio compression support
svn-id: r48856
2010-04-29 15:54:59 +00:00
Max Horn 460d69e885 COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
2010-04-27 21:40:52 +00:00
Martin Kiewitz 7c26675ec1 SCI: fix regression from r48720, upscaled games that use view cursors crashed
svn-id: r48810
2010-04-26 21:01:05 +00:00
Martin Kiewitz 78e85ce053 SCI: fixing regression from r48771 - sierra used != before SCI1LATE and !(&) later - fixes broken windows in sq1
svn-id: r48807
2010-04-26 15:30:32 +00:00
Martin Kiewitz 3f601f15bf SCI: changing comment slightly about setting signal selector in stopSound for SCI0
svn-id: r48806
2010-04-26 14:13:38 +00:00
Martin Kiewitz 98ae0f8218 SCI: also set signal selector when stopping sounds for SCI0 as well - fixes sq3 freeing 2 guys from andromeda endless loop
svn-id: r48805
2010-04-26 14:11:30 +00:00
Martin Kiewitz f334ecfa34 SCI: green buttons for sci0early implemented
svn-id: r48799
2010-04-25 20:48:59 +00:00
Martin Kiewitz 3005fffe78 SCI: draw a black line between titlebar and actual window content for SCI0, also replaced hardcoded white value (255) with screen specific value
svn-id: r48798
2010-04-25 19:49:10 +00:00
Martin Kiewitz cc4bd9bf1c SCI: changing setFont() call logic inside textedit controls to save 2 setFont() calls
svn-id: r48797
2010-04-25 16:47:14 +00:00
Martin Kiewitz 14ac9b54a0 SCI: we check for enough space, before adding pressed characters in textedit controls
svn-id: r48796
2010-04-25 16:43:16 +00:00