aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
AgeCommit message (Collapse)Author
2010-06-30SCI: adjust brRect and nsRect, if sci2 hires views are used, fixes hotspots ↵Martin Kiewitz
in gk1 svn-id: r50536
2010-06-30SCI: remove some duplicate codeMartin Kiewitz
svn-id: r50535
2010-06-30SCI: support for hires views in gk1Martin Kiewitz
svn-id: r50533
2010-06-29Handle empty clip rectangles in GfxView::drawScaled(). Fixes an assert in ↵Filippos Karapetis
the first room of the game svn-id: r50503
2010-06-29SCI: Rewrap more commentsMax Horn
svn-id: r50500
2010-06-29SCI: Add some const qualifiersMax Horn
svn-id: r50499
2010-06-29SCI: Rename listEntry -> 'it' for better readabilityMax Horn
svn-id: r50498
2010-06-29SCI: Simplify List::iterator usage in GfxAnimateMax Horn
svn-id: r50497
2010-06-29SCI: Simplify GfxAnimate code, get rid of _listDataMax Horn
svn-id: r50496
2010-06-28SCI: updated comment about transparent pixels in viewsMartin Kiewitz
svn-id: r50454
2010-06-28SCI: kAnimate resetting _lastCastCount all the timeMartin Kiewitz
svn-id: r50453
2010-06-28SCI: fix regression of r50422, please no refactoring without proper testing ↵Martin Kiewitz
- fixes animations in all sorts of games svn-id: r50451
2010-06-28SCI: added comment - lsl5 also has too large windowsMartin Kiewitz
svn-id: r50450
2010-06-28Remove CRsWillem Jan Palenstijn
svn-id: r50435
2010-06-28SCI: add const again to newWidthMartin Kiewitz
svn-id: r50434
2010-06-28SCI: fix regression of r50424, 2x scalingMartin Kiewitz
svn-id: r50433
2010-06-28SCI: Cleanup GfxView code (formatting etc.); also insert some asserts to ↵Max Horn
protect scalingX/Y arrays svn-id: r50425
2010-06-28SCI: Optimized GfxScreen::scale2x a bitMax Horn
svn-id: r50424
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