aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2010-01-22SCI: dont swap coordinates on rects when both are "wrong", will fix button ↵Martin Kiewitz
placement and gfx corruption when challenging jones (caused by duplicate buttons having lower right 0, 0) - function needs some more work svn-id: r47446
2010-01-22SCI: restoring r47412, we were right all along but this "hack" was done on ↵Martin Kiewitz
the sierra sci interpreter for jones ega/vga only (talkie NOT included). So this restore does it game specific now, causing no regressions anywhere else. We detect jones/talkie as "jones" as well, may cause regressions for talkie svn-id: r47445
2010-01-22SCI: reverting r47412, change was incorrect and also resulted in broken ↵Martin Kiewitz
animations inside text boxes in kq5. jones also uses hardcoded -1 priority for control icons. svn-id: r47444
2010-01-20SCI: control icons now use objects priority selector instead of hardcoded ↵Martin Kiewitz
priority 255. fixes jones speech bubbles svn-id: r47412
2010-01-20SCI: kDrawCel workaround documented and not temporary anymoreMartin Kiewitz
svn-id: r47409
2010-01-20SCI: workaround for game menu/quit menu in freddy pharkas till vm issue is ↵Martin Kiewitz
resolved svn-id: r47407
2010-01-19SCI: Remove upper 4 bits when drawing lines on EGA games (fixes window ↵Martin Kiewitz
colors in kq1 and others) svn-id: r47385
2010-01-17SCI: kDisposeWindow - use reanimate when argc == 1 (fixes iceman window removal)Martin Kiewitz
svn-id: r47341
2010-01-15SCI: adjust kNewWindow to support argc==15 (on mac according [md5])Martin Kiewitz
svn-id: r47308
2010-01-14SCI: another change to reanimate behaviour of kDisposeWindowMartin Kiewitz
svn-id: r47300
2010-01-14SCI: change on reanimate kDisposeWindow behaviour, fixes sq5 window removalMartin Kiewitz
svn-id: r47299
2010-01-11Changed all kGraph calls which handle rectangles to use kGraphCreateRect(). ↵Filippos Karapetis
Also, changed kGraphCreateRect() to return a rect, rather than update a rect pointer svn-id: r47253
2010-01-11Some portrait-related changes, to be used when portrait loading/unloading is ↵Filippos Karapetis
done. Also, added a comment on where the class is used svn-id: r47251
2010-01-11Moved all the cache limits inside helpers.h and removed an obsolete TODOFilippos Karapetis
svn-id: r47250
2010-01-11Hide the mouse cursor while a video is being playedFilippos Karapetis
svn-id: r47240
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