aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/animate.cpp
AgeCommit message (Collapse)Author
2010-07-22SCI: Added a sanity check for rev 51152. If a node has been deleted, it ↵Filippos Karapetis
shouldn't have a successor node svn-id: r51154
2010-07-22SCI: Fixed the crash in LSL2, room 42 (when arriving at the island). ↵Filippos Karapetis
kAnimate may refer to unfrozen objects which have been deleted, thus handle that case accordingly. svn-id: r51152
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: kAnimate resetting _lastCastCount all the timeMartin Kiewitz
svn-id: r50453
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-26Further improve readabilityWillem Jan Palenstijn
svn-id: r50345
2010-06-26Improve readabilityWillem Jan Palenstijn
svn-id: r50340
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-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-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-20SCI: kPalVary - cleanup and some more codeMartin Kiewitz
svn-id: r50081
2010-06-18Fixed a problem in kAnimate which occurred when a list was modified by a ↵Filippos Karapetis
call (e.g. in KQ1 demo, PQ2) svn-id: r50022
2010-06-13Disabled two cases of findObjectByName() in SCI0 early gamesFilippos Karapetis
svn-id: r49639
2010-06-10Use the SELECTOR() macro for readabilityFilippos Karapetis
svn-id: r49563
2010-06-09Globals from script 0 are now initialized in script_init_engine(), and are ↵Filippos Karapetis
accessed from the relevant variables pointer. Removed direct reference to script 0 from the engine state svn-id: r49536
2010-05-29Mass renaming of selector-related functions, and removed some defines which ↵Filippos Karapetis
were just cloaking functions with a different name - GET_SEL32 -> readSelector - GET_SEL32V -> readSelectorValue - PUT_SEL32 -> writeSelector - PUT_SEL32V -> writeSelectorValue Also, changed some selector-related function names and variables to CamelCase svn-id: r49317
2010-05-24SCI: sort according to original order in kAnimate, when y and z are the same ↵Martin Kiewitz
- fixes iceman half-open compartment in room 35 svn-id: r49189
2010-05-15SCI: SCI_SCREEN_MASK_* now GFX_SCREEN_MASK_*, using enum - added new enum ↵Martin Kiewitz
GFX_SCREEN_UPSCALED_* svn-id: r49039
2010-04-30SCI: animate cleanupMartin Kiewitz
svn-id: r48876
2010-04-24SCI: reverting r48787 port updates were actually introduced (heard that ↵Martin Kiewitz
before) in SCI1. I used the outdated wiki before and that one lists qfg2 and xmas90ega being SCI01. They are actually SCI1 svn-id: r48789
2010-04-24SCI: r48786 port updates were actually introduced during SCI01, qfg2 and ↵Martin Kiewitz
xmas90ega only. We enable port updates only for non-multilingual SCI01 games now - fixes percentage bar for qfg1 japanese as well svn-id: r48787
2010-04-24SCI: beginUpdate()/endUpdate() of ports were introduced inside kAnimate() in ↵Martin Kiewitz
SCI01 - fixes percentage bar not showing up in qfg1ega svn-id: r48786
2010-04-16Added a sanity check for the current list node inside GfxAnimate::invoke(). ↵Filippos Karapetis
This should fix the crash in LSL2 as described in patch #2987942, without adding additional lookups svn-id: r48670
2010-02-13SCI: Remove EngineState::_kernel, use SciEngine::_kernel insteadMax Horn
svn-id: r48050
2010-02-05SCI: Add a 'SELECTOR' macroMax Horn
svn-id: r47918
2010-02-05SCI: priority band specific stuff now gets called directly w/o SciGuiMartin Kiewitz
svn-id: r47916
2010-02-05SCI: calling most of the cursor functions directly via _gfxCursor instead of ↵Martin Kiewitz
SciGui/32 svn-id: r47903
2010-02-05SCI: renamed class Cursor to GfxCursorMartin Kiewitz
svn-id: r47902
2010-02-04SCI: renaming class View to GfxViewMartin Kiewitz
svn-id: r47891
2010-02-04SCI: renaming Transitions to GfxTransitionsMartin Kiewitz
svn-id: r47890
2010-01-31SCI: renamed SciPalette to GfxPalette, Screen to GfxScreen, GfxPalette is ↵Martin Kiewitz
now called directly w/o SciGui svn-id: r47752
2010-01-31SCI: renamed SciGuiAnimate to GfxAnimate, moved code from SciGui into this ↵Martin Kiewitz
class, now getting called directly svn-id: r47751
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-29SCI: Move selector stuff to new header; reorder k_argc & k_argp param of ↵Max Horn
invoke_selector svn-id: r47665
2010-01-27SCI: scaling for non-regular cels, scaling for reanimate (fixes pharkas ↵Martin Kiewitz
demo, fixes lb2 cd credit windows) svn-id: r47594
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-16SCI: added TODO inside kAnimate for scalesignal bit 1, added comment about ↵Martin Kiewitz
scaling into view class svn-id: r47330
2010-01-16SCI: View::drawScaled() created (doesnt do scaling yet), removed scaling ↵Martin Kiewitz
variables from View::draw, gfx calls drawScaled() when scaleX/Y != 128, getting scaled rect inside kAnimate() svn-id: r47322
2010-01-15SCI: added enum for ScaleSignalMartin Kiewitz
svn-id: r47313
2010-01-15SCI: changed scalesignal to scaleSignal - selector works now :)Martin Kiewitz
svn-id: r47312
2010-01-15SCI: adding caching for scalesignal, scaleX and scaleY within kAnimate()Martin Kiewitz
svn-id: r47311
2010-01-07SCI: implemented additional drawCel for hires views, fixes menu bar of kq6 - ↵Martin Kiewitz
still need to fix coordinates and implement save/restoreBits for hires svn-id: r47116
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-05Some initial work on SCI1.1 view scaling (not working yet)Filippos Karapetis
svn-id: r47027
2010-01-05More renamingFilippos Karapetis
svn-id: r47009