aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.cpp
AgeCommit message (Collapse)Author
2010-02-08Get rid of the workaround for a g++ (code generation) bug on AMD64, by ↵Johannes Schickel
passing a reference of a Color instance to saturatedAddColor instead of a value. svn-id: r48006
2010-02-08According to Buddha^ it should be fine to calculate (and set) the AMIGA dim ↵Johannes Schickel
palette in Palette::setGlobalOSystemPalette. svn-id: r48005
2010-01-31Fix return of a reference to a temporary object introduced with r47766. ↵Johannes Schickel
(Hopefully this "workaround" will work also for Chrilith's compiler ;-). svn-id: r47771
2010-01-31Slight fixes to comply with our coding guidelines.Johannes Schickel
svn-id: r47770
2010-01-31Prevent my compiler to crash and object copy hopefully it doesn't break ↵Chris Apers
something svn-id: r47766
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2009-09-20Implement support for transparent dialgue boxes in the Amiga version of ↵Johannes Schickel
Future Wars. svn-id: r44222
2009-09-20Implement more precise palette conversion in Palette::save. This makes the ↵Johannes Schickel
output look more like the original (compared against E-UAE), but still not perfect. svn-id: r44221
2009-09-15Add link to gcc bug report, in the comment for the gcc aimed workaround for ↵Johannes Schickel
AMD64. svn-id: r44112
2009-09-15CINE: Turn some methods into const methodsMax Horn
svn-id: r44100
2009-09-15Fix valgrind warning inside "saturatedAddColor", when using the same palette ↵Johannes Schickel
object as both source and destination. svn-id: r44094
2009-08-01Remove obsolete comment from Cine::Palette::saturatedAddColor.Kari Salminen
svn-id: r42973
2009-06-08Convert FWRenderer and OSRenderer to use Cine::Palette.Kari Salminen
Also fix some bugs that came up in testing of Cine::Palette. svn-id: r41386
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-24Add color and color component getters to Cine::Palette.Kari Salminen
svn-id: r40849
2009-04-04Add saturatedAddColor-function in which you can specify the added color's ↵Kari Salminen
format (This replaces saturatedAddNormalizedColor). Make colorFormat()-accessor function to return a const reference for speed. svn-id: r39851
2009-04-01Cine::Palette: Add saturatedAddNormalizedColor-function (Going to be used to ↵Kari Salminen
combine FWRenderer's and OSRenderer's transformPalette-functions into one later on). svn-id: r39795
2009-03-28Cine::Palette: Add empty() and isValid() functions.Kari Salminen
svn-id: r39725
2009-03-27Cine::Palette: Add a black palette constructor and a clear-function for ↵Kari Salminen
clearing the palette of all data (Releases used memory etc). svn-id: r39713
2009-03-27Make Cine::Palette use the PixelFormat's convenience functions introduced in ↵Kari Salminen
r39711 (This way I don't have to cache the rMax, gBits etc values and I'm left with less member variables to keep up to date). svn-id: r39712
2009-03-27Cine::Palette: Remove unnecessary and needlessly complicating saving of the ↵Kari Salminen
last loaded palette data's endian type. svn-id: r39710
2009-03-27Cine::Palette: Add setGlobalOSystemPalette-method for setting the global ↵Kari Salminen
OSystem's palette from the Palette object's internal representation. svn-id: r39709
2009-03-25Cine::Palette::saturatedAddNormalizedGray: Use fractional representation ↵Kari Salminen
(dividend/denominator) of the normalized gray value in range [-1, +1] rather than a floating point. svn-id: r39691
2009-03-24Cine::Palette: Add fillWithBlack and saturatedAddNormalizedGray-methods.Kari Salminen
svn-id: r39676
2009-03-16Fix for warnings on trunk-lenny-x86_64-build (Yay \o/ Buildbot!).Kari Salminen
svn-id: r39456
2009-03-16Cine::Palette: Make saturatedAddColor-methods more like their old ↵Kari Salminen
counterparts transformPaletteRange and transformColor. svn-id: r39454
2009-03-16Prefix Cine's endian types with CINE_ so they don't clash with already ↵Kari Salminen
defined LITTLE_ENDIAN and/or BIG_ENDIAN on some platforms. svn-id: r39453
2009-03-16Add endianness handling to Cine::Palette's load and save functions.Kari Salminen
svn-id: r39452
2009-03-14Cine::Palette revamp part 2: Fix save-function, add Cine-palette formats etc.Kari Salminen
- Removed excess convenience functions, made the used palette formats publicly available instead (Cine::kLowPalFormat, Cine::kHighPalFormat etc) - Fixed output conversion i.e. save-functions.. Hopefully they work ;-) - Renamed some parameters for unification (colors -> buf, numBytes -> size) - Added some documentation, e.g. for the load- & save-functions. svn-id: r39405
2009-03-11Fix assertion (Doh! That was supposed to be the other way).Kari Salminen
svn-id: r39344
2009-03-11Cine::Palette: Move color format setting to setColorFormat-method.Kari Salminen
svn-id: r39339
2009-03-11Formatting.Kari Salminen
svn-id: r39338
2009-03-11Add saving in original palette format and the OSystem's palette format to ↵Kari Salminen
Cine::Palette. svn-id: r39337
2009-03-11Add saving functions to Cine::Palette (Now one can output the palette in ↵Kari Salminen
other formats too). svn-id: r39336
2009-03-11Fix assertions in palette loading function to really test that each color ↵Kari Salminen
component fits inside a single byte (Easier to parse that way). svn-id: r39333
2009-03-10- Fix warningsJohannes Schickel
- Formatting svn-id: r39317
2009-03-10Palette-class for Cine-engine, WIP: Take 2. Testing, using and documentation ↵Kari Salminen
still TODO. svn-id: r39310
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-20Fixed gcc warning.Johannes Schickel
svn-id: r35137
2008-11-20Fix resizing of the internal color array in Palette-class.Kari Salminen
svn-id: r35136
2008-11-20Add Palette-class for handling 9-bit and 24-bit palettes. WIP!Kari Salminen
svn-id: r35135
2008-11-18Make the 256 color transformPaletteRange-function and Future Wars's ↵Kari Salminen
refreshPalette-function compliant with disassembly. svn-id: r35118
2008-08-11Changed palPtr from a pointer to a Common::Array named palArray. Removed ↵Kari Salminen
palEntriesCount variable as it's now equivalent to palArray.size(). svn-id: r33785
2008-05-24Patch #1969189: "CinE renderer rewrite"Eugene Sandulenko
svn-id: r32257
2007-12-14renamed several structures, variables and functionsGregory Montoir
svn-id: r29860
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-30cleanup, don't rely on assert() to ensure a gamefile/savefile is opened. ↵Gregory Montoir
Also removed the use of Common::File global objects. svn-id: r27021
2007-05-29added code for freePartRange, freePartEntry and freeOverlay (also renamed ↵Gregory Montoir
some functions and variables). svn-id: r27006
2007-02-18Bad hack to make this engine works on PalmOS (compiler still seems to hate ↵Chris Apers
some global objects) svn-id: r25684
2006-03-23uint8 -> byteEugene Sandulenko
svn-id: r21414