aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/plane32.h
AgeCommit message (Collapse)Author
2017-10-06SCI32: Clean up PlaneColin Snover
* Rewrap comments to 80 columns * Clarify comments where possible
2016-12-19SCI32: Change plane and screen item sorting algorithmColin Snover
SSCI's last resort comparison here was to compare the object IDs of planes & screen items, but this randomly breaks (at least) the "you have died" dialog at the end of Phant1, and text & buttons in Hoyle5, even in SSCI itself. This commit changes last resort comparison to use a monotonically increasing ID instead, which keeps objects with identical priority & z-index in creation order when compared. Fixes Trac#9585.
2016-08-01SCI32: Add 6-argument signature of kAddPicAtColin Snover
This is used by Torin in room 50900.
2016-08-01SCI32: Implement plane transitions (kSetShowStyle and kSetScroll)Colin Snover
This commit implements all of the known plane transitions from SCI2 through SCI2.1mid games. Because kSetShowStyle is always called indirectly via the Styler game script, it is difficult to find all the places where transitions are used. As such, transitions that appeared to never be used have been added as stubs which will trigger a game crash with a message to report what was being done, so any missed transition types can be identified quickly and then implemented.
2016-07-11SCI32: Give planes a default typeColin Snover
With the addition of the transparent pic type code, the _type property would be read uninitialised by setType if _pictureId was set to kPlanePic. CID 1357230, 1357231.
2016-07-01SCI32: Fix signed comparison warningsColin Snover
2016-06-30SCI32: Add transparent pic plane typeColin Snover
It is not clear if this is ever actually used by game scripts, though.
2016-06-30SCI32: Clean-up pass on rendering pipelineColin Snover
This pass exposed two bugs, which have been fixed: 1. Checks of `_updated` and `_moved` were reversed in some areas, which lead to rendering bugs. In SQ6 the rendering bugs were subtle or non-existant, but in e.g. PQ:SWAT the Sierra logo and title screen animations were totally missing. 2. The renderer formerly kept reading from ScreenItemLists when new items were added in decrementScreenItemArrayCounts, but this was determined to be unnecessary.
2016-05-26SCI32: Remove unused Plane fieldsColin Snover
These fields were written and never read in SSCI.
2016-05-25SCI32: Fix assertion failures in LSL6 hires caused by bad rectsColin Snover
LSL6 hires sends rectangles to kernel calls that have negative dimensions. SSCI did not care about this and would simply accept these invalid rects, so we do the same, at least for now.
2016-03-17SCI32: Code documentation improvementsColin Snover
2016-03-15SCI32: More work on remappingFilippos Karapetis
Still not working
2016-03-10SCI32: Implement kMovePlaneItemsColin Snover
2016-03-08SCI: Add missing namespace comments in graphics/.Johannes Schickel
2016-03-07SCI32: Add reg_t comparisons for graphics sortingColin Snover
2016-03-06SCI32: Fix memory leaksColin Snover
2016-03-06SCI32: "Improve" comparison algorithm for planes and screen itemsColin Snover
This adds a slightly more accurate comparison algorithm that will at least ensure that all the engine-generated planes and screen items with matching priorities will be sorted above script-generated planes and screen items, like in the original engine. It still does not sort script-generated items by memory handle order, so if that is ever a thing that actually happens, those may still be in the wrong order.
2016-03-06SCI32: Implement kEditTextColin Snover
2016-02-19SCI: Use American English, like we do in other parts of ScummVMFilippos Karapetis
This replaces "colour" to "color"
2016-02-19SCI: Compare offsets in the Plane comparison operatorFilippos Karapetis
Fixes a crash in the first scene of Torin's Passage
2016-02-18SCI: Implement accurate renderer architecture for SCI32Colin Snover