aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2010-01-10SCI: fixed typo when getting resourceId on kPortrait call - fixes resource ↵Martin Kiewitz
not found in kq6 within pawn shop svn-id: r47223
2010-01-10SCI: updateBox now also supports hires modeMartin Kiewitz
svn-id: r47219
2010-01-10SCI: switching to hires kDrawCel when 8th parameter is passed, fixed ↵Martin Kiewitz
kDrawCel port adjust - fixes kq6 hires inventory svn-id: r47217
2010-01-07SCI: implement crazy hack that fixes coordinates of some cel placements. I'm ↵Martin Kiewitz
not sure if thats what sierra sci actually does or if we get coordinates 0,0 due some error somewhere. Fixes portrait window placement in kq6 - strangely they are still not at the correct height perhaps related to not adjusting "correctly" (whatever this means in this ugly mess that hires was implemented) inside BitsSave() svn-id: r47140
2010-01-07SCI: fixed save/restorebits within screen class for displayscreen case, ↵Martin Kiewitz
fixes kq6 menu bar svn-id: r47125
2010-01-07SCI: changed kernel signature for kDrawCel, enabled upscaled hires savebox ↵Martin Kiewitz
code ("crashed" before because afterwards kDrawCel will get the handle from the savebox call) svn-id: r47121
2010-01-06SCI: sync displayScreen with framebuffer after successful video playback ↵Martin Kiewitz
(fixes background vanishing in mainmenu of gk1demo) svn-id: r47089
2010-01-06- Some work on kLocalToGlobal and kGlobalToLocal for SCI2+Filippos Karapetis
- 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-05More renamingFilippos Karapetis
svn-id: r47009
2010-01-05Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purposeFilippos Karapetis
svn-id: r47007
2010-01-05SCI: Removed the old graphics codeFilippos Karapetis
svn-id: r47005
2010-01-04SCI: kPalette / animate adjustments to behave more like sierra sci, also ↵Martin Kiewitz
doesnt crash in island of brain anymore svn-id: r46975
2010-01-04SCI/new sound code: update sound cues when kGetEvent() is called, instead of ↵Filippos Karapetis
kAnimate(), fixes music fading in LSL3 svn-id: r46973
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