aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
AgeCommit message (Collapse)Author
2016-05-28SCI32: Provide default value for vmap minDiffIndexColin Snover
SSCI did not initialise minDiffIndex and would always flow into the condition that sets it, but some compilers complain that the value may be used uninitialised, so we will just set it to map back to its original palette index by default.
2016-05-28SCI32: Simplify default text width equationColin Snover
2016-05-28SCI: Explicit type conversion. Avoids warnings on number of compilers.Eugene Sandulenko
2016-05-28SCI: Fix warningEugene Sandulenko
2016-05-28SCI32: Remove unused titled text bitmap codeColin Snover
Titled text bitmaps do not appear to be used by any game scripts. They seem to only be used by the error manager in SSCI, but ScummVM has its own error handling, so we don’t need this implementation.
2016-05-27SCI32: Add explicit checks for null pointersColin Snover
CID 1351617, 1351618, 1351619, 1351620, 1351621, 1351622, 1354791.
2016-05-27SCI32: Initialise pointers in CelObj scalerColin Snover
This ensures that if there is a bug in the drawing code that causes the row to be unset, it will not result in silently reading garbage out of random memory. CID 1354802
2016-05-27SCI32: Fix CelObj cacheColin Snover
The previous implementation did not work properly, assigning the next insertion index to the oldest object instead of filling empty cache slots on a cache miss.
2016-05-27SCI32: Use better name for fixed priority fieldColin Snover
The old name matches the selector, but isn’t as clear.
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-05-25SCI32: Update header parameters with const, to match implementationColin Snover
2016-05-16SCI: Removing redundant virtual destructor as per LordHoto's suggestionEugene Sandulenko
2016-05-16SCI: Make the Window destructor actually virtualEugene Sandulenko
2016-05-16SCI: Add virtual destructorEugene Sandulenko
2016-03-18SCI32: Use correct script dimensions for later SCI32 gamesColin Snover
These values are hard-coded in the engine executable for each game.
2016-03-18SCI32: Fix crashes in kIsOnMe caused by stale CelObjsColin Snover
2016-03-18SCI32: Fix incorrect double-read from CLUTColin Snover
2016-03-17SCI32: Code documentation improvementsColin Snover
2016-03-17SCI32: Remove outdated note about state of frameout codeColin Snover
This code is engine-accurate now, not based on guesswork.
2016-03-17SCI32: Temporarily remove dead SCI2.1early transitions codeColin Snover
This code sneaked in with the graphics engine rewrite, but is not ready yet to be used. It will return shortly, once it is enabled and working.
2016-03-17SCI32: Update unimplemented TODO to reflect the correct operation typeColin Snover
2016-03-17SCI32: Enable redrawAllCount in palMorphFrameOutColin Snover
2016-03-16SCI32: Work around bad Styler script in KQ7 2.0bColin Snover
The SCI2.1mid version of the game includes scripts designed for SCI2.1early which means wrong parameters are sent to the kernel.
2016-03-16SCI32: Fix updated screen item count in remapMarkRedraw()Filippos Karapetis
Thanks to snover for noticing this
2016-03-16SCI32: Implement analyzeForRemap()Filippos Karapetis
2016-03-16SCI32: Implement the remapping drawing functionsFilippos Karapetis
2016-03-16SCI32: Implement analyzeUncompressedForRemap()Filippos Karapetis
2016-03-16SCI32: SpacingFilippos Karapetis
2016-03-16SCI32: Remove dead code related to priority map handlingFilippos Karapetis
The priority map is not used at all in SCI32 at the engine level by design, so all the relevant code that handles picture priority is pretty much dead
2016-03-16SCI32: Global 12 contains the previous roomFilippos Karapetis
2016-03-16SCI32: Remove getColorAtCoordinate()Filippos Karapetis
The only calling code for this was removed in commit 3f2469c33ed6017d3c385fbbfd01a4e690987fbc
2016-03-15SCI32: Initialise all scaler tablesColin Snover
Initialising only the first table means that if the first ratios aren't 1:1 but the *second* ratios are 1:1, the second ratios will read from an uninitialised table.
2016-03-15SCI32: More work on remappingFilippos Karapetis
Still not working
2016-03-15SCI: Remove unused _gfxScreen parameter from GfxRemapFilippos Karapetis
2016-03-13SCI32: Fix scaler drawing pixels at the wrong positionsColin Snover
In order for scaling ratios to apply equally across objects that start at different positions on the screen, the pixels that are read from the source bitmap must all use the same pattern of division. In other words, cels must follow the same scaling pattern as if they were drawn starting at an even multiple of the scaling ratio, even if they were not.
2016-03-13Revert "SCI32: Fix small inaccuracy in the scaling drawing code"Colin Snover
This reverts commit d85eb8ded68a20de383d84064aacd1a4c81db4e9. This patch did not correctly fix the scaler to follow the same rules as SSCI and only worked on the y-axis.
2016-03-13SCI32: Add note about kCantBeHere rectColin Snover
2016-03-13SCI32: Remove incorrect note about dword_C6288Colin Snover
Any reason why flipping this condition did anything to GK1 rendering was due to other unrelated bugs in the renderer.
2016-03-13SCI32: Clarify the purpose of scaling ratios used in ScreenItemColin Snover
2016-03-13SCI32: Fix small inaccuracy in the scaling drawing codeMartin Kiewitz
Previously sourcePos was always originating from plain 0, 0 which made some pixels not always getting drawn at the right spot when uneven scaling was used (for example 5:12). Seems to fix gabriel knight 1 hires graphic issues
2016-03-11SCI32: Use Common::fill() instead of memset(), where possibleFilippos Karapetis
Thanks wjp, LordHoto, waltervn
2016-03-11SCI32: Assign a define for the non-remapped number of colorsFilippos Karapetis
2016-03-11SCI32: Add remap counters and hook them up to frameOutFilippos Karapetis
2016-03-11SCI32: Avoid usage of delegated constructorsFilippos Karapetis
Although this feature reduces code duplication, GCC throws the following: "warning: delegating constructors only available with -std=c++11 or -std=gnu++11".
2016-03-11SCI32: More work on remappingFilippos Karapetis
applyRemap() has been implemented now, however the end effect is still not visible
2016-03-11SCI32: Handle the different remap color ranges in SCI2 and SCI21Filippos Karapetis
This fixes an assertion when starting a new game in SQ6
2016-03-11SCI32: Fix bug in updateRemap()Filippos Karapetis
2016-03-11SCI32: Initial implementation of kRemapColorsFilippos Karapetis
applyRemap() is still not finished, so nothing is actually visible yet
2016-03-10SCI32: Implement GfxText32::getTextCountColin Snover