aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/palette.h
AgeCommit message (Collapse)Author
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
2010-01-26SCI: changed flags (uint16) to force (bool) for set/merge palette methodsMartin Kiewitz
svn-id: r47578
2010-01-26SCI: force palette merging for kq6 hires portraits (cause its needed on those)Martin Kiewitz
svn-id: r47577
2010-01-25SCI: removed EGA mapping for amiga games, cause changing ↵Martin Kiewitz
K_GRAPH_GET_COLORS_NR to support amiga also fixes it - also fixes other odd issues like the ones in kq5 and castle of dr. brain/sq1 (thx. to waltervn for finding this out) svn-id: r47560
2010-01-25SCI: support for amiga pictures that change the paletteMartin Kiewitz
svn-id: r47552
2010-01-24SCI: self drawn stuff on amiga uses ega palette, we need to match it onto ↵Martin Kiewitz
currently used amiga palette (fixes user interface colors for amiga sci1 games) svn-id: r47520
2010-01-05More renamingFilippos Karapetis
svn-id: r47009