aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
AgeCommit message (Collapse)Author
2016-08-13SCI32: Fix cast warningsColin Snover
2016-08-12SCI32: Clean up Video32 includesColin Snover
2016-08-12SCI32: Fix KQ7 1.51 video backgroundColin Snover
2016-08-12SCI32: Fix crash when kShowMovie is called but the video cannot be foundColin Snover
2016-08-12SCI32: Fix KQ7 1.51 basic video playbackColin Snover
There is still a problem where the background is white instead of black; this is caused by the palette of the video using entry 0 as white. This seems to have worked out OK in SSCI because the video was not actually played back inside the engine itself, so didn't interfere with the palette of the engine. ScummVM has no such separation, so the palette of the video interferes with the palette of the blank background pic, turning it white.
2016-08-12SCI32: Additional Video32 documentationColin Snover
2016-08-12SCI32: Implement kShowMovieColin Snover
2016-08-11SCI32: Temporarily revert kShowMovie due to buildbot failuresColin Snover
Revert "SCI32: Fix KQ7 1.51 video background" This reverts commit c8affb54cca259f37522216bad739be085bf9caa. Revert "SCI32: Fix crash when kShowMovie is called but the video cannot be found" This reverts commit 93b06f4a9e08de281ee7eb9c780ceac147c3fb23. Revert "SCI32: Fix KQ7 1.51 basic video playback" This reverts commit cdab24aa07c18ad4a25a1659f7fca15cca5e358e. Revert "SCI32: Additional Video32 documentation" This reverts commit 4ff0924e57a9bc9101ee0799a967fe3373dd2574. Revert "SCI32: Implement kShowMovie" This reverts commit 13297c19298c5ad73c9e996c5c31ca91de124911.
2016-08-11SCI32: Fix KQ7 1.51 video backgroundColin Snover
2016-08-11SCI32: Fix crash when kShowMovie is called but the video cannot be foundColin Snover
2016-08-11SCI32: Fix KQ7 1.51 basic video playbackColin Snover
There is still a problem where the background is white instead of black; this is caused by the palette of the video using entry 0 as white. This seems to have worked out OK in SSCI because the video was not actually played back inside the engine itself, so didn't interfere with the palette of the engine. ScummVM has no such separation, so the palette of the video interferes with the palette of the blank background pic, turning it white.
2016-08-11SCI32: Additional Video32 documentationColin Snover
2016-08-11SCI32: Implement kShowMovieColin Snover
2016-08-11SCI32: Fix GfxFrameout::_isHiRes flag to be accurate for all gamesColin Snover
2016-08-01SCI: Fix warningsEugene Sandulenko
2016-08-01SCI32: Fix crash when destroying GfxTransitions32Colin Snover
2016-08-01SCI32: Add bitmap segment and remove GC option from hunk segmentColin Snover
2016-08-01SCI32: Don't crash on zero-dimension show rectsColin Snover
In the original engine this would have simply resulted in no draw, but ScummVM is more strict about it. It is not 100% clear whether these are normal and should be allowed or not, so for the moment we'll emit a warning whenever a zero-dimension show rect is seen. For now they only seem to be generated by plane transitions, and these zero-dimension screen items cannot simply be omitted because the 2.1early transitions code requires a fixed number of screen items per step.
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-08-01SCI32: Enable optional explicit memory management of hunk entriesColin Snover
Bitmaps in ScrollWindow and Robot code are managed by the kernel and not by game scripts, although they must be able to be referenced through a reg_t. To prevent incorrect GC of bitmaps that are in use but not referenced by any game script, explicit memory management of hunk entries can be enabled.
2016-07-30SCI32: Fix crash in Torin when opening save dialogColin Snover
2016-07-27SCI32: Give default skip color a nameColin Snover
2016-07-27SCI32: Remove dead placeholder rendering codeColin Snover
2016-07-27SCI32: Use extern instead of #include frameout.h for splitRectsColin Snover
2016-07-27SCI32: Fix backwards kFrameOut throttle timingsColin Snover
2016-07-27SCI32: Handle remap data outside the game's remap rangeColin Snover
2016-07-24SCI32: Fix bad VMD palettes in GK2Colin Snover
2016-07-24SCI32: Improve behaviour of screen transitionsColin Snover
1. Use the same throttling speed as normal frameouts. The old throttling speed seemed a bit too slow. 2. Exit the event loop immediately if the engine is supposed to quit, instead of forcing the user to wait until the transition has finished before quitting.
2016-07-12SCI32: Fix unnecessary palette updatesColin Snover
Some games load palettes that include color 255, but this is hardcoded to white in SSCI, so just ignore it during merges since it is ignored when the hardware palette is updated anyway.
2016-07-12SCI32: Avoid flash of incorrect colour when palettes are changedColin Snover
Avoid forcing the screen to refresh after a palette change if the screen is also about to be drawn to, as the palette change + draw is intended to be an atomic operation.
2016-07-11SCI32: Add detection for Hoyle 5 demoColin Snover
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-11SCI32: Guard against no split countColin Snover
CID 1357229.
2016-07-11SCI32: Fix incorrect logic of cycler overflowColin Snover
2016-07-11SCI32: Minor cleanup of GfxPalette32Colin Snover
2016-07-11SCI32: Fix bad output caused by missing palette copiesColin Snover
Sometimes, games accidentally use palette entries that are not marked as used and expect them to be a particular colour, like the Phantasmagoria title screen, or the white palette entry (always 255 in DOS/Win).
2016-07-11SCI32: Split GfxPalette and GfxPalette32 + HunkPaletteColin Snover
2016-07-10SCI32: Clean up Video32/VMDPlayerColin Snover
2016-07-10SCI32: Add support for blacklined videoColin Snover
Ow. My eyeballs.
2016-07-10SCI32: Implement kPlayVMDColin Snover
2016-07-02SCI32: Expose graphics throttling codeColin Snover
Controls that manage their own event loops and call frameOut directly generally need to sleep in order to avoid 100% CPU, just like the main VM event loop.
2016-07-02SCI32: Document _remapOccurred flagColin Snover
2016-07-02SCI32: Improve accuracy of frameout throttlerColin Snover
2016-07-02SCI32: Add const to getCurrentBufferColin Snover
2016-07-02SCI32: Document ScreenItem::_insetRectColin Snover
2016-07-02SCI32: Fix dropping events in kEditTextWillem Jan Palenstijn
2016-07-01SCI32: Fix signed comparison warningsColin Snover
2016-07-01SCI32: Fix bad rendering of subtitle backgrounds in TorinColin Snover
The way dimensions of scaled screen items are calculated changed over the lifetime of SSCI. In early low-resolution and mixed-resolution games, scaled drawing needed to use at a global cadence across the entire screen to ensure proper alignment, but in later games (like Torin), local scaling of individual screen items seems to be the way scaling is performed.
2016-06-30SCI32: Add transparent pic plane typeColin Snover
It is not clear if this is ever actually used by game scripts, though.