aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-03GUI: Use boss's x/y/w/h instead of clippingAreaAlexander Tkachev
2016-07-03Merge pull request #772 from BenCastricum/bugfixesEugene Sandulenko
MISC: Bugfixes
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-02SCI: Remove presumably long-outdated FIXMEWillem Jan Palenstijn
2016-07-02SCI: Remove unexpected side effect from ExecStack constructorWillem Jan Palenstijn
The ExecStack constructor set argp[0] to argc before. This is now moved to the caller, to make this action more explicit.
2016-07-02SCI: Remove unclear &rest handlingWillem Jan Palenstijn
Modifying a value above the stack pointer doesn't seem to make much sense. This was added in FreeSCI back in 2002 in a pair of commits that did not make clear what the purpose of this was. My guess is that it attempted to adjust argc, but failed. This wouldn't have been noticed since argc was always set correctly by make_exec_stack_entry (which is now the ExecStack constructor).
2016-07-02SCI: Improve kernel subfunction loggingWillem Jan Palenstijn
ExecStack now stores the kernel call number as well as the subfunction. This allows kStub and backtraces to log the actual subfunction called. The kernel call number in ExecStack used to be stored in the debugSelector field. It now has its own field, to avoid confusion.
2016-07-02SCI: Remove unneeded copyWillem Jan Palenstijn
2016-07-02COMMON: Make MemoryWriteStreamDynamic private members protectedWillem Jan Palenstijn
2016-07-02SCUMM: Add actor/object names to debug outputOri Avtalion
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-07-01SCI32: Use better audio fading algorithmColin Snover
Using the one from SCI2.1mid makes fades very slow because SDL has a larger audio buffer than SSCI DOS. This new algorithm is based on wall time so will always fade at the correct speed, although the larger buffers will have a coarser granularity so the fades may not be as smooth as in the original engine. If anyone cares, the fade volume could be mixed into individual samples in `readBuffer` instead of applying just once per complete buffer. SSCI did not do this, however, so this implementation should be pretty accurate.
2016-07-01SCI32: Fix audio fadingColin Snover
2016-07-01SCI: Fix script patcher, so that it works on BE systemsMartin Kiewitz
2016-07-01SDL: Fix mouse trailing part of bug #7141Ben Castricum
Overlays are shown with _currentShakePos offset too, so no need to compensate the mousepointer position for overlays. This compensation was done inconsistently in draw/undraw mouse causing the mouse trails.
2016-07-01SCUMM: reset ShakePos on loading, fixes one part of bug #7141Ben Castricum
2016-07-01SKY: change "savegame" into "saved game"Ben Castricum
2016-07-01SCUMM: Use exact strings in stringtable, fixes bug #6886Ben Castricum
Similar (fix) to bug #6739
2016-07-01Merge pull request #766 from OmerMor/qfg3_boundsFilippos Karapetis
SCI: Script patch for QfG3 giant tree bounds
2016-07-01Merge branch 'remap'Willem Jan Palenstijn
2016-07-01SCI32: Fix broken Remap implementationColin Snover
Remap would crash SCI2.1early games with 19 remap slots, and did not actually work in most cases in SCI2.1mid+ games. 1. Avoid accidental corruption of values from the VM that may be valid when signed or larger than 8 bits 2. Fix bad `matchColor` function. 3. Remove unnecessary initialisation of SingleRemaps 4. Update architecture to more closely mirror how SSCI worked 5. Split large `apply` function into smaller units 6. Fix buffer overrun when loading a SCI2.1early game with remap 7. Warn instead of crashing with an error on invalid input (to match SSCI more closely) 8. Add save/load function
2016-07-01SCI32: Move matchColor to GfxRemap32Colin Snover
2016-07-01SCI32: Separate remap typesColin Snover
2016-07-01SCI32: Add missing remap CelObj callsColin Snover
2016-07-01SCI32: Move GfxRemap32 to separate filesColin Snover
2016-07-01SCI32: Change kRemapColors naming for consistencyColin Snover
2016-07-01Revert "SCI32: Fix broken Remap implementation"Willem Jan Palenstijn
This reverts commit cfda8b9ecd8a6e3c003abe533ea2e2981d8ba984. This is only to re-apply it immediately in a series of smaller commits.
2016-07-01Merge pull request #770 from OmerMor/kgettimeFilippos Karapetis
SCI: Fixed KGetTime with SYSDATE subop in SCI0-LATE.
2016-06-30SCI32: Specify default hardware ratesColin Snover
This normally happens in SSCI when the audio hardware is initialised. CID 1357048
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-06-30SCI32: Implement engine-accurate screen item list sortingColin Snover
It seems highly probable that there are later SCI games that use the "hi res" rendering path, so sorting and unsorting of ScreenItemLists needs to be accurate.
2016-06-30SCI32: Document & clean up extra rect argument for frameOutColin Snover
This extra rect seems to probably only ever be used by VMD playback in some SCI2.1 games.
2016-06-30SCI32: Add low resolution constantsColin Snover
In a few places in the graphics system, fixed low-resolution values are used instead of the game script resolution.
2016-06-27CONFIGURE: Only open config.log after showing helpWillem Jan Palenstijn
This prevents ./configure --help from clearing config.log.
2016-06-27SCI: Add script patch for another Colonel's Bequest game bugMartin Kiewitz
Command input stays disabled, when oiling the arm of the armor. We fix this. This script bug also happens, when using the original interpreter. Fixes bug #7154
2016-06-27SCI: Fixed KGetTime with SYSDATE subop in SCI0-LATE.Omer Mor
SSCI implementation of the SYSDATE subop of the GetTime kernel function was changed between SCI0-LATE and SCI01: The base year used was changed from 1920 to 1980. This subop is used in "Codename: Iceman" (Say "ask for date" to a passing girl on the beach). The Atari ST version of "Codename: Iceman" use the 1980 base year. The Amiga version of "Codename: Iceman" appears to return the time instead of date, with 0 for the YEAR part.
2016-06-26SCI32: Fix benchmarking for QFG4Colin Snover
2016-06-26SCI32: Change Color::operator!= to all operator== directlyColin Snover
2016-06-26SCI32: Enable aspect ratio correction on QFG4CDColin Snover
2016-06-26SCI32: Fix typoColin Snover
2016-06-26SCI32: Remove no-longer-relevant commentColin Snover
2016-06-26SCI32: Add more workarounds for SCI2.1early gamesColin Snover
These games all share the same bad system script that always sends NULL as a second argument to kDoSound(play).
2016-06-26SCI32: Fix broken Remap implementationColin Snover
Remap would crash SCI2.1early games with 19 remap slots, and did not actually work in most cases in SCI2.1mid+ games. The SCI16 implementation was moved to its own separate file but was otherwise touched as little as possible, so may still have similar problems to the SCI32 code. 1. Split SCI16 and SCI32 code into separate files 2. Use -32 prefixes for SCI32 code and no prefix for SCI16 code, where possible, to match other existing code 3. Avoid accidental corruption of values from the VM that may be valid when signed or larger than 8 bits 4. Added documentation 5. Add missing remap CelObj calls 6. Inline where possible in performance-critical code paths 7. Fix bad `matchColor` function, and move it from GfxPalette to GfxRemap32 since it is only used by GfxRemap32 8. Fix bad capitalisation in getCycleMap 9. Remove unnecessary initialisation of SingleRemaps 10. Update architecture to more closely mirror how SSCI worked 11. Clarify the purpose of each type of remap type (and associated variable names) 12. Split large `apply` function into smaller units 13. Fix buffer overrun when loading a SCI2.1early game with remap 14. Remove use of `#define` constants 15. Warn instead of crashing with an error on invalid input (to match SSCI more closely) 16. Change the collision avoidance mechanism between the RemapType enum and remap kernel functions 17. Add save/load function