aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
AgeCommit message (Collapse)Author
2010-06-28SCI: Comment cleanupMax Horn
svn-id: r50423
2010-06-28SCI: Remove GfxView::getLoopInfo; add assert to GfxView::getCelInfoMax Horn
The return value of GfxView::getCelInfo was used virtually everywhere without a check for it being non-NULL. Hence instead of returning NULL when the loop count is zero, it makes more sense to assert out (instead of a segfault, or worse, random data being used). svn-id: r50422
2010-06-28SCI: Add const qualifiers to many GfxView methods and their return values.Max Horn
This helps to ensure proper data encapsulation. Also reformatted some overlong comments to 80 chars per line, and fixed some other code formatting issues. svn-id: r50421
2010-06-28SCI: Make src param of GfxScreen::scale2x constMax Horn
svn-id: r50420
2010-06-28SCI: separated the graphics initialization code a bitFilippos Karapetis
- Moved all of the graphics initialization code on startup inside initGraphics() - Moved all of the screen initialization (resolution, upscaled graphics etc) code inside GfxScreen() svn-id: r50412
2010-06-27Silenced a false positive in MSVC about a potentially uninitialized variableFilippos Karapetis
svn-id: r50392
2010-06-27SCI: Fix for large views in GK2. At least it does not segfault now.Lars Skovlund
svn-id: r50376
2010-06-26Further improve readabilityWillem Jan Palenstijn
svn-id: r50345
2010-06-26Improve readabilityWillem Jan Palenstijn
svn-id: r50340
2010-06-26SCI: another commit for adding a workaround for islang room 300 again ↵Martin Kiewitz
(although i already commited it already, stupid torturegit) svn-id: r50330
2010-06-25Removed the getHunkPointer error - it's valid SCI behavior (e.g. when ↵Filippos Karapetis
loading/quitting sometimes, since hunks are not saved). We check for valid hunk pointers anyway, so there's no reason for the warning/error svn-id: r50279
2010-06-25When loading a game, stop all running VMs recursively, and also stop ↵Filippos Karapetis
kAnimate's current recursion. This fixes the invalid execution stack frame in SQ1, when loading from the death screen after dying from the acid drops in Kerona. This should also fix the invalid hunk pointers, thus the warning about invalid hunk pointers has been turned into an error, as it shouldn't occur anymore svn-id: r50277
2010-06-25SCI: Introduce SciGameId enumMax Horn
svn-id: r50273
2010-06-25SCI: detect, if SCI1.1 game is merging or copying palette instead of using ↵Martin Kiewitz
gameIds. Also prints method used, when using debug command "version" svn-id: r50261
2010-06-24SCI: fix kTextSize to not crash when destination has an invalid rect in itMartin Kiewitz
svn-id: r50210
2010-06-23SCI: we extended the showBits() rect all the way depending on where the ↵Martin Kiewitz
object moved, fixed - fixes kq6cd flickering coin and pq1 flickering locker issue svn-id: r50190
2010-06-23SCI: cnick-laurabow & cnick-kq are called with -Nw 0 0...Martin Kiewitz
svn-id: r50187
2010-06-23SCI: it seems that all cnick games are using the inbetween interpreterMartin Kiewitz
svn-id: r50186
2010-06-23SCI: adding cnick-longbow to inbetween sci1.1 in GfxPaletteMartin Kiewitz
svn-id: r50185
2010-06-23Moved the SelectorCache struct inside selector.h, where it belongs, and ↵Filippos Karapetis
fixed some header dependencies in the process svn-id: r50183
2010-06-23SCI: global scaling implemented (hopefully, i'm not sure if it works 100% ↵Martin Kiewitz
:P) thx to waltervn for telling me the vocab 994 stuff used for disassembly svn-id: r50181
2010-06-23SCI: adding some more global scaling code, adding vanishingY and vanishingX ↵Martin Kiewitz
as selectors svn-id: r50180
2010-06-23SCI: some initial work on global scalingMartin Kiewitz
svn-id: r50179
2010-06-23SCI: implementing boundary checking for GfxPalette::createFromData(), sq5 ↵Martin Kiewitz
has a broken picture 0 resource, which would result in either crash or at least bad read from memory depending on whats read there svn-id: r50178
2010-06-22SCI: added nicks picks sq to the sci1.1 interpreter games, the other ones ↵Martin Kiewitz
may also use the same interpreter, but we currently can not verify svn-id: r50172
2010-06-22SCI: eco quest 1 demo also uses inbetween sci1.1 interpreter, fixing graphicsMartin Kiewitz
svn-id: r50170
2010-06-22SCI: reversing r50168, demo is using the same offTop as well (demo.bat)Martin Kiewitz
svn-id: r50169
2010-06-22SCI: demo of fairy tales uses regular offTopMartin Kiewitz
svn-id: r50168
2010-06-22SCI: set offTop to 26 for mixed up fairy tales to fix all sorts of ↵Martin Kiewitz
non-fully-removed windows svn-id: r50166
2010-06-22SCI: implemented kAssertPalette and a palvary fix for ::set, fixes erana's ↵Martin Kiewitz
place in qfg1vga nighttime svn-id: r50162
2010-06-22SCI: fixed typoMartin Kiewitz
svn-id: r50154
2010-06-22SCI: kPalVary(SetTarget) implementedMartin Kiewitz
svn-id: r50153
2010-06-21Fix the Hoyle 4 (Hoyle Classic) demo's top offset. It currently errors out ↵Matthew Hoops
later from lacking a selector (static selector problem). svn-id: r50118
2010-06-21SCI: also set throttle trigger on kPalette(animate)Martin Kiewitz
svn-id: r50109
2010-06-21SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat ↵Martin Kiewitz
"fixes" lb2cd when selecting play game svn-id: r50108
2010-06-20SCI: fixed typoMartin Kiewitz
svn-id: r50101
2010-06-20SCI: implemented kPalVary(changeTicks)Martin Kiewitz
svn-id: r50100
2010-06-20SCI: properly implement kPalVary functionality within kDrawPic and ↵Martin Kiewitz
transitions, so pharkas finally works w/o palette corruption svn-id: r50099
2010-06-20SCI: adding timestamp update for frameout, fixes gk1 windows main menuMartin Kiewitz
svn-id: r50094
2010-06-20SCI: disable palvary when reverse is fully done - fixes palette getting ↵Martin Kiewitz
stuck in pharkas (the broken palette in there is actually not caused by palvary, it was just overwritten before by view palette updates and those dont occur when palvary is active) svn-id: r50093
2010-06-20SCI: cleanup of SciPaletteMartin Kiewitz
svn-id: r50091
2010-06-20SCI: implemented kPalVary(reverse) for pharkas, although there is a bug ↵Martin Kiewitz
somewhere, not working 100% svn-id: r50089
2010-06-20Sort planes in kFrameOut by priority and keep plane/item priority separate ↵Matthew Hoops
as they represent two different things. Fixes various SCI32 graphical glitches. Most (all?) remaining glitches are because we don't yet handle kSignalFixedPriority. svn-id: r50087
2010-06-20SCI: implementing kPalVary(2)Martin Kiewitz
svn-id: r50085
2010-06-20SCI: adding code for kPalVary ticks == 0 case, fixes pharkasMartin Kiewitz
svn-id: r50084
2010-06-20SCI: adding kPalVary update call to kFrameout - it's getting morning now in ↵Martin Kiewitz
gabriel knight 1 svn-id: r50083
2010-06-20SCI: some kPalVary support - intro of island dr. brain works fine nowMartin Kiewitz
svn-id: r50082
2010-06-20SCI: kPalVary - cleanup and some more codeMartin Kiewitz
svn-id: r50081
2010-06-20SCI: fix r50078, we need to update timestamp for inbetween SCI1.1 games, but ↵Martin Kiewitz
not on kPortrait palette changes svn-id: r50079
2010-06-20SCI: update timestamp like before for inbetween SCI1.1 gamesMartin Kiewitz
svn-id: r50078