aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/palette.h
AgeCommit message (Collapse)Author
2017-03-27SCI: Implement bounds-checked reads of game resourcesColin Snover
2016-07-11SCI32: Split GfxPalette and GfxPalette32 + HunkPaletteColin Snover
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-01-14SCI: Implement SCI32 kPalette findColor and matchColorColin Snover
It seems that findColor is used only by kPalette, and matchColor is used only by Remap.
2016-01-14SCI: Implement SCI32 kPalVary and kPalette setFadeColin Snover
This also fixes kPalCycle signatures to be more accurate.
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-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-02-18SCI: Make GPL headers consistent in themselves.Johannes Schickel
2012-11-15SCI: Properly reset the palVary signal when loading (bug #3575569)Filippos Karapetis
2012-11-07SCI: Fix bug #3575569 - "SCI: QFG1VGA: Palette/hue bug after loading"Filippos Karapetis
We make sure that any leftover palVary timers are removed when loading. This is an edge case, but it won't hurt to remove these timers just in case
2012-08-21SCI: More work on kRemapColorsFilippos Karapetis
This implements some more color remap-based palette effects, found in 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: 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: Remove unused variablesFilippos Karapetis
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
2011-10-19SCI: Move the palette merging checking code inside the GfxPalette classFilippos Karapetis
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-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-02-17SCI: Fix Mac icon bar palettesMatthew Hoops
The Mac icon bar uses a palette from the executable and keeps those entries in the palette constantly. In addition, we're now performing gamma correction on the Mac-based colors so that they are in the same gamma as SCI. The color matching now works with this and using the same color finding as the Mac Palette Manager.
2011-02-13SCI: Add support for Phantasmagoria 2 CLUT resourcesMatthew Hoops
My test of ising the clut associated with the intro video produced a decent quality color conversion. This is not yet hooked up to the video player.
2011-02-07SCI: Fixed compilationFilippos Karapetis
svn-id: r55813
2010-07-27SCI: implemented kPalette(save/restore)Martin Kiewitz
svn-id: r51381
2010-07-23SCI: Now saving the kPalVary state inside savegamesFilippos Karapetis
svn-id: r51194
2010-07-11SCI: also sync palette after playing movies, fixes kq6 introMartin Kiewitz
svn-id: r50798
2010-06-25SCI: detect, if SCI1.1 game is merging or copying palette instead of using ↵Martin Kiewitz
gameIds. Also prints method used, when using debug command "version" svn-id: r50261
2010-06-23SCI: implementing boundary checking for GfxPalette::createFromData(), sq5 ↵Martin Kiewitz
has a broken picture 0 resource, which would result in either crash or at least bad read from memory depending on whats read there svn-id: r50178
2010-06-22SCI: fixed typoMartin Kiewitz
svn-id: r50154
2010-06-22SCI: kPalVary(SetTarget) implementedMartin Kiewitz
svn-id: r50153
2010-06-20SCI: implemented kPalVary(changeTicks)Martin Kiewitz
svn-id: r50100
2010-06-20SCI: properly implement kPalVary functionality within kDrawPic and ↵Martin Kiewitz
transitions, so pharkas finally works w/o palette corruption svn-id: r50099
2010-06-20SCI: implemented kPalVary(reverse) for pharkas, although there is a bug ↵Martin Kiewitz
somewhere, not working 100% svn-id: r50089
2010-06-20SCI: implementing kPalVary(2)Martin Kiewitz
svn-id: r50085
2010-06-20SCI: some kPalVary support - intro of island dr. brain works fine nowMartin Kiewitz
svn-id: r50082
2010-06-20SCI: kPalVary - cleanup and some more codeMartin Kiewitz
svn-id: r50081
2010-06-20SCI: update sys palette timestamp only on kDrawPic in SCI1.1, fixes intro of ↵Martin Kiewitz
island of dr. brain svn-id: r50077
2010-06-20SCI: removing unneeded parameters inside SciPalette, cleanup of SciPaletteMartin Kiewitz
svn-id: r50076
2010-06-20SCI: some cleanup for kPalVaryMartin Kiewitz
svn-id: r50074
2010-06-17SCI: implement workaround for laura bow 2 demo, because that interpreter ↵Martin Kiewitz
uses the old real palette merging from sci1 - some views contain a palette that has all colors marked as being used, which would overwrite sysPalette with blacks svn-id: r49936
2010-06-08SCI: set default palette after initializing music driver, fixes palette ↵Martin Kiewitz
getting messed up when using mt32 emulation svn-id: r49523
2010-04-02SCI: change actual setting of palette, fixes gk1 palette issue when talking ↵Martin Kiewitz
to grace indirectly caused by r47955, seems to also fix jones palette issue, could cause regressions svn-id: r48474
2010-02-07SCI: set screen palette only when it got changed during merge (performance ↵Martin Kiewitz
only change) svn-id: r47955
2010-02-07SCI: added dummy assertpalette to GfxPalette, setting destination palette ↵Martin Kiewitz
immediately on kPalVary(start) call svn-id: r47953
2010-02-05SCI: adding some minor documentation for the various graphic classesMartin Kiewitz
svn-id: r47904
2010-02-04Moved the PalVary code inside the GfxPalette classFilippos Karapetis
svn-id: r47893
2010-01-31SCI: remove classname from header to fix buildMartin Kiewitz
svn-id: r47754
2010-01-31SCI: renamed kernelFind() to kernelFindColor, so that it isnt that confusing :PMartin Kiewitz
svn-id: r47753
2010-01-31SCI: renamed SciPalette to GfxPalette, Screen to GfxScreen, GfxPalette is ↵Martin Kiewitz
now called directly w/o SciGui svn-id: r47752