aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/palette.cpp
AgeCommit message (Collapse)Author
2018-04-22SCI: Change workaround for PalVary / Animate race conditionWillem Jan Palenstijn
The new approach is to delay kAnimate briefly (with an 68ms timeout) while there is a zero-tick PalVary running, so that it has time to trigger. The previous workaround would immediately process a zero-tick PalVaryInit/PalVaryReverse. This caused problems in QfG3 (bug #10304) where it interfered with PalVaryPause. The previous workaround could also be modified to handle pause/resume, but this new approach should be closer to SSCI's behaviour, which used a timer for a zero-tick PalVary too. This fixes bug #10304, and keeps #5298 fixed too.
2017-03-30SCI: Update formatting strings to match updated Span APIColin Snover
2017-03-27SCI: Implement bounds-checked reads of game resourcesColin Snover
2017-01-06SCI: Add FIXME for (very unlikely) race condition in _palVarySignalWillem Jan Palenstijn
2016-08-01SCI32: Add bitmap segment and remove GC option from hunk segmentColin Snover
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-03-08SCI: Split color remapping functionality into a separate classFilippos Karapetis
Currently, only the SCI16 remapping functionality is implemented (used in the QFG4 demo)
2016-02-15JANITORIAL: Typos detected with lintian & grepAlexandre Detiste
2016-01-14SCI: Use tick-based timing more consistentlyColin Snover
This means tick-based times are saved to save games, as in SCI32 engine, instead of seconds, which are not accurate enough. It also means places in SCI engine that need to access game ticks should do so through g_sci instead of g_system or g_engine.
2016-01-14SCI: Implement SCI32 kPalVary and kPalette setFadeColin Snover
This also fixes kPalCycle signatures to be more accurate.
2016-01-08SCI: Fix compilationFilippos Karapetis
2016-01-07SCI32: Add initial support for palette cycling (kPalCycle) and fading (kPalFade)Colin Snover
Graphics palette code was rewritten between SCI1 and SCI2, so SCI32 palette engine code has been moved to a separate GfxPalette32 class.
2014-10-29SCI: color matching bug fixMartin Kiewitz
2014-10-28SCI: color matching - remove debug codeMartin Kiewitz
2014-10-28SCI: properly reversed color matching thanks wjpMartin Kiewitz
2014-10-28SCI: implement 8-bit color matching SCI1.1 bugMartin Kiewitz
effectively fixes bug #6455 thanks to wjp and [md5]
2014-10-27SCI: Add note on SSCI 11 FindColor bugWillem Jan Palenstijn
2014-02-18SCI: Make GPL headers consistent in themselves.Johannes Schickel
2013-04-27SCI: Change wording for bug/further info referencesFilippos Karapetis
2013-01-11SCI: Remove obsolete comment and codeFilippos Karapetis
2012-11-26SCI: Amended fix for palette related compiler warnings.D G Turner
2012-11-26SCI: Fix warningsFilippos Karapetis
2012-08-21SCI: More work on kRemapColorsFilippos Karapetis
This implements some more color remap-based palette effects, found in QFG4
2012-07-25SCI: Set the RemapByPercent palette initiallyFilippos Karapetis
This needs to be performed because the screen palette might not change after the call. Fixes the display of the bat in the character selection screen in the full version of QFG4
2012-07-25SCI: Rewrite the color remapping code to support simultaneous effectsFilippos Karapetis
Fixes the torch in the full version of QFG4
2012-07-24SCI: Refresh remapping by percent whenever the screen palette changesFilippos Karapetis
2012-07-24SCI: Cleanup of the palette remapping codeFilippos Karapetis
2012-07-24SCI: More work on color remappingFilippos Karapetis
More transparency/color mapping effects are now working (e.g. the flashlight at the Gedde tomb in GK1, the rays of light at Schloss Ritter in GK1, the torch in the QFG4 demo and the shadows in QFG4, PQ4 and KQ7)
2012-07-24SCI: Initial implementation of kRemapColors(kRemapByPercent)Filippos Karapetis
Fixes some graphics glitches in the QFG4 demo and the menus of QFG4, by implementing one of the transparency effects used mainly in SCI32. Many thanks to fuzzie for her debugging info on QFG4 demo and to wjp for his great help on the dissassembly
2012-06-08SCI: Handle resource ID -1 when setting the palVary resourceFilippos Karapetis
Fixes several wrong colors in SQ6
2011-11-17SCI: Updated information regarding bug #3439240Filippos Karapetis
2011-11-17SCI: Fixed bug #3439240 - "QFG1VGA: Game Crashes While Sleeping at Erana's ↵Filippos Karapetis
Peace"
2011-11-03SCI: Fixed typo in colorIsFromMacClut()Filippos Karapetis
2011-10-19SCI: Move the palette merging checking code inside the GfxPalette classFilippos Karapetis
2011-10-19SCI: Wrapped some very long linesFilippos Karapetis
2011-09-27SCI: Added support for the halfbrite palette used in Longbow AmigaFilippos Karapetis
This fixes the remaining palette problems in the game (bug #3309036)
2011-09-25SCI: Bugfix for the palette of Longbow Amiga (still not right)Filippos Karapetis
2011-08-06OSYSTEM: extended installTimerProc() with timer ID parameterEugene Sandulenko
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-03-07SCI: Initial handling of the views in Longbow Amiga. Still not rightmd5
2011-03-05SCI: Added some support code for Longbow Amigamd5
2011-03-04SCI: Fix Mac icon bar palette match orderMatthew Hoops
2011-03-04SCI: Some palette related changesmd5
- Moved palette color count inside the GfxPalette class - Enabled all of the kPalette subops for 16 color SCI1 games, apart from the ones for intensity palette animation, and palette resource loading - Removed isVGA() and isAmiga32color() methods from the resource manager - they ended up in having inconsistent code
2011-03-04SCI: Removed a hack for SCI1 Amiga games in setOnScreen()md5
2011-02-21SCI: Fixed freddy's Mac icon bar palettesMatthew Hoops
(hopefully for good now)
2011-02-19Merge branch 'osystem-palette' of https://github.com/lordhoto/scummvm into ↵Johannes Schickel
master Conflicts: backends/platform/android/android.cpp engines/sci/graphics/screen.cpp engines/sci/graphics/transitions.cpp
2011-02-18SCI: Fix compilation using MSVC 9strangerke