aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/palette.cpp
AgeCommit message (Collapse)Author
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
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-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2011-02-07SCI: Fix SCI1.1 Mac picture palettes furtherMatthew Hoops
The palette color start is actually a byte, not a uint16. svn-id: r55796
2011-02-02SCI: Fix GK1 Mac views, the game now startsMatthew Hoops
svn-id: r55721
2011-01-01SCI: debugC calls no longer require a debug level of 2 to show outputFilippos Karapetis
svn-id: r55086
2010-11-17SCI: Change 'colour' to 'color'Max Horn
All other instances already were spelled 'color' in the SCI engine (and also most other parts of ScummVM) svn-id: r54285
2010-11-05SCI: Fix blend rounding, styleWillem Jan Palenstijn
svn-id: r54093
2010-11-04SCI: Fix precedence error in commentWillem Jan Palenstijn
svn-id: r54071
2010-11-04SCI: Use gamma 2.2 for blending undithered coloursWillem Jan Palenstijn
svn-id: r54069
2010-08-24SCI: fixing comment of r52351Martin Kiewitz
svn-id: r52353
2010-08-24SCI: fix race condition in sierra kPalVary codeMartin Kiewitz
we are loading pictures very fast, this results in a kPalVary race condition, because sierra set timer to 1 tick, when it was getting called with 0 ticks and required the timer to occur before the transition. Fixes freddy pharkas nighttime being daytime during transitions (bug #3051905) svn-id: r52351
2010-08-24SCI: dont load target palette when gameIsRestarting != 0Martin Kiewitz
fixes sepia palette getting applied when loading in pharkas (part of bug #3051905) svn-id: r52326
2010-07-27SCI: implemented kPalette(save/restore)Martin Kiewitz
svn-id: r51381
2010-07-27SCI: adding scaling code in kBaseSetterMartin Kiewitz
and fixing palVary timer crash when exiting engine during palVary processing svn-id: r51361
2010-07-22SCI: changed the comment about the palette merging (it's not a workaround ↵Filippos Karapetis
anymore). Also, changed the warning when a picture has a broken palette into debug output - these pictures (which can be found in other games too) are usually meant to be blank, thus don't have a palette svn-id: r51148
2010-07-22Silenced a known warning in SQ5, after the introFilippos Karapetis
svn-id: r51131
2010-07-13SCI: adding comment about palette formatsMartin Kiewitz
svn-id: r50847
2010-07-11SCI: also sync palette after playing movies, fixes kq6 introMartin Kiewitz
svn-id: r50798
2010-07-10SCI: calling speed throttler as well from kPalette(setIntensity) if needed - ↵Martin Kiewitz
fixes kq6 intro svn-id: r50794
2010-07-10SCI: adding kPalette signatures, fixing 3 kPalVary calls, fixing ↵Martin Kiewitz
kAssertPalette (we used the wrong parameter number before, maybe the issues were caused by this) svn-id: r50780
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: it seems that all cnick games are using the inbetween interpreterMartin Kiewitz
svn-id: r50186
2010-06-23SCI: adding cnick-longbow to inbetween sci1.1 in GfxPaletteMartin Kiewitz
svn-id: r50185
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: added nicks picks sq to the sci1.1 interpreter games, the other ones ↵Martin Kiewitz
may also use the same interpreter, but we currently can not verify svn-id: r50172
2010-06-22SCI: eco quest 1 demo also uses inbetween sci1.1 interpreter, fixing graphicsMartin Kiewitz
svn-id: r50170
2010-06-22SCI: implemented kAssertPalette and a palvary fix for ::set, fixes erana's ↵Martin Kiewitz
place in qfg1vga nighttime svn-id: r50162
2010-06-22SCI: kPalVary(SetTarget) implementedMartin Kiewitz
svn-id: r50153
2010-06-21SCI: also set throttle trigger on kPalette(animate)Martin Kiewitz
svn-id: r50109
2010-06-21SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat ↵Martin Kiewitz
"fixes" lb2cd when selecting play game svn-id: r50108
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: disable palvary when reverse is fully done - fixes palette getting ↵Martin Kiewitz
stuck in pharkas (the broken palette in there is actually not caused by palvary, it was just overwritten before by view palette updates and those dont occur when palvary is active) svn-id: r50093
2010-06-20SCI: cleanup of SciPaletteMartin Kiewitz
svn-id: r50091
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