aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2010-01-31SCI: cleaned up graphics classes, removed gfx&windowmgr, added gfxports, ↵Martin Kiewitz
gfxcompare, gfxpaint16, gfxcache. kernel uses gfxports directly w/o going through SciGui svn-id: r47745
2010-01-30SCI: Remove extra '\n's in debugC messagesWillem Jan Palenstijn
svn-id: r47707
2010-01-30Add the SCI2.1 variant of kShowMovie; KQ7 now shows the opening video.Matthew Hoops
svn-id: r47699
2010-01-29Fix compile when ENABLE_SCI32 is not set.Matthew Hoops
svn-id: r47682
2010-01-29SCI: adding shakeScreen() for gui32 for lsl6Martin Kiewitz
svn-id: r47681
2010-01-29SCI: added new SciGui32 class, Gfx class needs some work though and ↵Martin Kiewitz
hopefully i didnt overlook some kernel function that is also used by sci32. now using plane left/top svn-id: r47679
2010-01-29SCI: Move selector stuff to new header; reorder k_argc & k_argp param of ↵Max Horn
invoke_selector svn-id: r47665
2010-01-28SCI2.1: Added a dummy function for kRobot (with some info on its ↵Filippos Karapetis
parameters), assigned IsOnMe to OnMe (needs verification, but seems to be correct) and changed kSave(8) to return nonzero. The menu of the Phantasmagoria demo is now shown, together with its creepy music :) svn-id: r47648
2010-01-27SCI: added workaround for laura bow 2 game menu (same issue as in ↵Martin Kiewitz
pharkas)...sigh svn-id: r47611
2010-01-27SCI: changed the pharkas workaround to also cover pharkas-floppy demoMartin Kiewitz
svn-id: r47606
2010-01-27Only reshow the cursor after playing a video if it was originally showing ↵Matthew Hoops
beforehand. This fixes the GK1 demo menu. svn-id: r47602
2010-01-26SCI: changed flags (uint16) to force (bool) for set/merge palette methodsMartin Kiewitz
svn-id: r47578
2010-01-26SCI: Add string support for odd-offset pointers into reg_t-based segments.Walter van Niftrik
svn-id: r47572
2010-01-25SCI: dont fix line color for amiga 32 colorMartin Kiewitz
svn-id: r47561
2010-01-25SCI: removed EGA mapping for amiga games, cause changing ↵Martin Kiewitz
K_GRAPH_GET_COLORS_NR to support amiga also fixes it - also fixes other odd issues like the ones in kq5 and castle of dr. brain/sq1 (thx. to waltervn for finding this out) svn-id: r47560
2010-01-24SCI: Fix list control scrolling in Jones EGA and VGA.Walter van Niftrik
svn-id: r47511
2010-01-23Added some skeleton code for kPalVary()Filippos Karapetis
svn-id: r47485
2010-01-23SCI: separate fix function for kDrawControl rectsMartin Kiewitz
svn-id: r47462
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