aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2010-01-01Added a comment for the reason updateSci0Cues() is called within kAnimate()Filippos Karapetis
svn-id: r46833
2010-01-01SCI/new music code:Filippos Karapetis
- Resolved a deadlock with the mixer, and added appropriate mutexes (a result of the fact that SCI mixes MIDI and digital audio in the same list) - Fixed sound playing when loading games, by properly resetting the MIDI driver - Reverted savegame version to 14 - the changes in versions 15 and 16 don't have any effect on the currently enabled old music code, and the new music code is disabled by default, and is still prone to changes - Now saving/loading signal, loop and hold for each sound, as well as reverb - Added stub code for setting reverb and channel hold - The signal, loop and hold values of each song are cached, like in SSCI and like what happens in Greg's SCI implementation. This allows a clear separation of the engine code from the rest of the engine. Reverted commits 46792 and 46797 - Removed duplicate song list accessing code - Song cues are now updated in kAnimate for SCI0, like the old music code does, to compensate for the fact that SCI0 didn't poll for music changes via cmdUpdateCues, like what SCI01 and newer do - Cleanup svn-id: r46812
2009-12-30The wrapper for the VMD decoder is only used in the SCI engine for SCI32 ↵Filippos Karapetis
games, so moved it inside the engine, instead of common code. Added support for VMD video playing from the "play_video" console command svn-id: r46737
2009-12-27Renamed gameName -> gameId, to keep the same vocabulary everywhereFilippos Karapetis
svn-id: r46635
2009-12-24SCI32: The view related functions pass a view object as parameter, and the ↵Filippos Karapetis
engine should deduce the parameters it needs from that object. Added stub view functions based on that fact. Also, added a sanity check in kCelHigh and kCelWide svn-id: r46527
2009-12-21SCI32:Matthew Hoops
- Fully implement kArray and kIsHiRes and mostly implement kString (printf and atoi subfunctions still missing). - Add a dummy SciGui class for SCI32 to bypass the views. Gabriel Knight 1 will now play the Sierra logo music and the main menu music. - Some other minor SCI32 changes. svn-id: r46462
2009-12-21Fixed text controls when subtitles are enabled in multilingual SCI01 gamesFilippos Karapetis
svn-id: r46461
2009-12-19- Started wrapping the current sound code around appropriate definesFilippos Karapetis
- Introduced a new resource type, SoundResource, used in the new music code svn-id: r46421
2009-11-30SCI: Fix kSetCursor (Sci1.1) to behave like Sierra Sci (fixes cursor ↵Martin Kiewitz
hiding/showing in kq6) svn-id: r46224
2009-11-20Changed some comments back to DOxygen (inline) style and removed some more ↵Filippos Karapetis
dead code svn-id: r46029
2009-11-05SCI/newgui: kDisposeWindow - changed to reflect actual sierra sci behaviourMartin Kiewitz
svn-id: r45683
2009-11-04Reapplied the LSL1 casino workaround, which got disabled accidentally in ↵Filippos Karapetis
commit #45661 svn-id: r45665
2009-11-04SCI/newgui: kGraph / InitPriority changed to reflect sci0 implementation, ↵Martin Kiewitz
also moved code svn-id: r45661
2009-11-04Removed the reference to SciGuiCursor from EngineStateFilippos Karapetis
svn-id: r45660
2009-11-04priority_first and priority_last are not used by the new drawing code, thus ↵Filippos Karapetis
the new code didn't handle priority changes by kGraph() svn-id: r45658
2009-11-03Removed some more hacks for accessing the segment managerFilippos Karapetis
svn-id: r45631
2009-10-31SCI/newgui: fixing kDisposeWindow so that reanimate is correctly called ↵Martin Kiewitz
(fixes cels disappearing after removing windows) svn-id: r45588
2009-10-31Fix compilation.Johannes Schickel
svn-id: r45582
2009-10-31SCI/newgui: SciGuiPortrait createdMartin Kiewitz
svn-id: r45579
2009-10-31Comment out unused variables.Johannes Schickel
svn-id: r45574
2009-10-31- Added some TODOsFilippos Karapetis
- Disabled the kGraph case used in KQ6 Windows for now, as it's problematic and crashes the game - Added extra param to kDrawCel(), used in KQ6 Windows The icon bar in KQ6 Windows is shown a bit better now svn-id: r45567
2009-10-31SCI/newgui: kGraph support for Save-UpscaledHires-Box (not sure if ↵Martin Kiewitz
coordinates are really hires, it seems that they are not) svn-id: r45564
2009-10-30Formatting.Johannes Schickel
svn-id: r45553
2009-10-30Some work on the kPortrait kernel function, used to show hires character ↵Filippos Karapetis
portraits in the Windows CD version of KQ6 svn-id: r45552
2009-10-29CleanupFilippos Karapetis
svn-id: r45506
2009-10-29- Implemented savegame deletion for SQ4 floppyFilippos Karapetis
- Added a more proper way to disable the "Change Directory" button, by checking its name, rather than the string it contains svn-id: r45504
2009-10-29Disable the "Delete" button for all versions of SQ4 floppy, and the "Change ↵Filippos Karapetis
Directory" button for all games (English and non-English versions) svn-id: r45503
2009-10-29SCI/newgui: Defining color white and others in SciGuiScreen and using that. ↵Martin Kiewitz
Also clears screen with 0 on sci1.1 games (needs further investigation), fixes pictures svn-id: r45500
2009-10-28Added a workaround for the casino door in LSL1Filippos Karapetis
svn-id: r45494
2009-10-28SCI/newgui: BaseSetter moved to SciGuiMartin Kiewitz
svn-id: r45480
2009-10-28SCI/newgui: IsItSkip moved into SciGuiMartin Kiewitz
svn-id: r45479
2009-10-28SCI/newgui: CleanupMartin Kiewitz
svn-id: r45478
2009-10-28Fixed the rectangle top inside kBaseSetter()Filippos Karapetis
svn-id: r45466
2009-10-28CleanupFilippos Karapetis
svn-id: r45465
2009-10-28Oops, removed leftover code (z was taken into account after all, but in a ↵Filippos Karapetis
different place...) svn-id: r45464
2009-10-28Rewrote kBaseSetter() to use new graphics functions and behave like the ↵Filippos Karapetis
original, and fixed a bug in the process (the previous code ignored z when calculating the height) svn-id: r45463
2009-10-28Reimplemented isItSkip() using new graphics codeFilippos Karapetis
svn-id: r45461
2009-10-28Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard ↵Filippos Karapetis
(defined in sci.h) svn-id: r45459
2009-10-25Moved the cel count calculation to the new graphics codeFilippos Karapetis
svn-id: r45379
2009-10-25SCI: kAddToPic - removing support for argc==0 case, if this really gets used ↵Martin Kiewitz
somewhere, we need to set _picNotValid in that case svn-id: r45372
2009-10-23SCI: kAddToPic - abort when list is null reference (fixes qfg1 saved game ↵Martin Kiewitz
loading on some screens) svn-id: r45351
2009-10-23SCI: speed throttler moved to kGameIsRestarting for all games. Also made the ↵Martin Kiewitz
delay shorter. sq3 now seems to work fine, kq1 also has animations and lsl5 mud wrestling is also working correctly. svn-id: r45345
2009-10-22SCI: kAnimate disable throttler for SCI0 and SCI01 games cause of issues in ↵Martin Kiewitz
at least kq1. temporary solution only! svn-id: r45341
2009-10-22CleanupFilippos Karapetis
svn-id: r45337
2009-10-22Moved the view loop counting code in the new GUIFilippos Karapetis
svn-id: r45322
2009-10-21- Removed kShow() and the related code it uses - it's a debugging function, ↵Filippos Karapetis
and we have the same functionality in the debug console - Merged the view signal flags from kernel.h and gui_animate.h, and named them appropriately. Also, updated the notes next to them, cause some were incorrectly marked as not used in our engine - Added a note about a hack used in the old GUI in the view signal flags - Moved the control state flags inside gui_helpers.h svn-id: r45310
2009-10-20SCI: kPalVary - pauseMartin Kiewitz
svn-id: r45292
2009-10-20SCI: kPalVary basicMartin Kiewitz
svn-id: r45287
2009-10-20SCI/newgui: Changed kPalette(animate) and implemented setFlags/unsetFlagsMartin Kiewitz
svn-id: r45277
2009-10-20SCI/newgui: kPalette/animate - accidentally changed speed to uint16 in prev. ↵Martin Kiewitz
revision although its signed svn-id: r45274