Kari Salminen
ce414e6671
Cine::Palette: Add a black palette constructor and a clear-function for clearing the palette of all data (Releases used memory etc).
...
svn-id: r39713
2009-03-27 21:31:03 +00:00
Kari Salminen
6ef983335e
Make Cine::Palette use the PixelFormat's convenience functions introduced in 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-27 20:59:46 +00:00
Kari Salminen
80ab6ccf44
Cine::Palette: Remove unnecessary and needlessly complicating saving of the last loaded palette data's endian type.
...
svn-id: r39710
2009-03-27 20:03:38 +00:00
Kari Salminen
f7da5230e3
Cine::Palette: Add setGlobalOSystemPalette-method for setting the global OSystem's palette from the Palette object's internal representation.
...
svn-id: r39709
2009-03-27 19:11:00 +00:00
Kari Salminen
39f7484c9e
Cine::Palette::saturatedAddNormalizedGray: Use fractional representation (dividend/denominator) of the normalized gray value in range [-1, +1] rather than a floating point.
...
svn-id: r39691
2009-03-25 19:52:08 +00:00
Kari Salminen
51751cd069
Cine::Palette: Add fillWithBlack and saturatedAddNormalizedGray-methods.
...
svn-id: r39676
2009-03-24 21:45:35 +00:00
Kari Salminen
6e3bf6af79
Fix for warnings on trunk-lenny-x86_64-build (Yay \o/ Buildbot!).
...
svn-id: r39456
2009-03-16 21:30:15 +00:00
Kari Salminen
97887377f0
Cine::Palette: Make saturatedAddColor-methods more like their old counterparts transformPaletteRange and transformColor.
...
svn-id: r39454
2009-03-16 21:10:15 +00:00
Kari Salminen
9dc2f16f16
Prefix Cine's endian types with CINE_ so they don't clash with already defined LITTLE_ENDIAN and/or BIG_ENDIAN on some platforms.
...
svn-id: r39453
2009-03-16 20:57:17 +00:00
Kari Salminen
739a31db12
Add endianness handling to Cine::Palette's load and save functions.
...
svn-id: r39452
2009-03-16 20:24:28 +00:00
Kari Salminen
814f27a72e
Cine::Palette revamp part 2: Fix save-function, add Cine-palette formats etc.
...
- 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-14 22:36:05 +00:00
Kari Salminen
5fd0b88ffe
Fix assertion (Doh! That was supposed to be the other way).
...
svn-id: r39344
2009-03-11 22:50:36 +00:00
Kari Salminen
bac7bd00be
Cine::Palette: Move color format setting to setColorFormat-method.
...
svn-id: r39339
2009-03-11 21:11:52 +00:00
Kari Salminen
e01e4d6dbe
Formatting.
...
svn-id: r39338
2009-03-11 21:05:21 +00:00
Kari Salminen
c676786146
Add saving in original palette format and the OSystem's palette format to Cine::Palette.
...
svn-id: r39337
2009-03-11 21:03:09 +00:00
Kari Salminen
4cbd3678f8
Add saving functions to Cine::Palette (Now one can output the palette in other formats too).
...
svn-id: r39336
2009-03-11 20:44:16 +00:00
Kari Salminen
6ccf016127
Fix assertions in palette loading function to really test that each color component fits inside a single byte (Easier to parse that way).
...
svn-id: r39333
2009-03-11 20:04:08 +00:00
Johannes Schickel
333d2c8e34
- Fix warnings
...
- Formatting
svn-id: r39317
2009-03-10 22:09:10 +00:00
Travis Howell
e6d0a83bb1
Fix compile of CINE engine.
...
svn-id: r39312
2009-03-10 21:47:53 +00:00
Kari Salminen
24e6587b16
Palette-class for Cine-engine, WIP: Take 2. Testing, using and documentation still TODO.
...
svn-id: r39310
2009-03-10 20:37:54 +00:00
Jordi Vilalta Prat
047f116515
Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
...
svn-id: r39132
2009-03-05 12:04:58 +00:00
Max Horn
dd98126423
Engines: Fused several init&go methods into a single run method
...
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
3fcbda829a
Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
...
svn-id: r39002
2009-03-01 04:30:55 +00:00
Johannes Schickel
da3516248c
Fixed compilation (along with it const correctness).
...
svn-id: r38287
2009-02-15 20:19:06 +00:00
Chris Apers
3ceb1482db
Quick dirty hack to make the engine run again on PalmOS
...
svn-id: r38278
2009-02-15 18:53:27 +00:00
Max Horn
341bc64aaf
do not include common/debug.h from common/util.h
...
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
7cb437b56f
Renamed SpecialDebugLevel to DebugChannel
...
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
28cf213605
Moved AdvancedDetector from common/ to engines/
...
svn-id: r36132
2009-01-29 22:13:01 +00:00
Max Horn
ac59693be2
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
...
svn-id: r36127
2009-01-29 05:26:12 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
df20d264fd
Pushing down some header deps (on common/system.h, mostly)
...
svn-id: r35542
2008-12-25 20:40:00 +00:00
Johannes Schickel
f4d8ecaf6a
Fixed gcc warning.
...
svn-id: r35137
2008-11-20 22:58:22 +00:00
Kari Salminen
325b4cb492
Fix resizing of the internal color array in Palette-class.
...
svn-id: r35136
2008-11-20 22:22:47 +00:00
Kari Salminen
16bf8d720b
Add Palette-class for handling 9-bit and 24-bit palettes. WIP!
...
svn-id: r35135
2008-11-20 22:16:18 +00:00
Kari Salminen
089c8b4e48
Make the 256 color transformPaletteRange-function and Future Wars's refreshPalette-function compliant with disassembly.
...
svn-id: r35118
2008-11-18 19:54:44 +00:00
Johannes Schickel
5a0556f09c
Committed my patch #2123680 "SDL: Backend transaction / rollback support".
...
svn-id: r35062
2008-11-14 22:08:10 +00:00
Travis Howell
cca19671d5
Fix compile of CINE engine.
...
svn-id: r35039
2008-11-13 11:36:37 +00:00
Filippos Karapetis
162634cc95
Started moving Save/Load code to saveload.cpp/.h
...
svn-id: r35033
2008-11-13 08:59:17 +00:00
Filippos Karapetis
0ba17539ac
Deleting save states via the launcher and the GMM is now supported in the cine engine
...
svn-id: r35032
2008-11-12 23:39:38 +00:00
Filippos Karapetis
28da377ccb
Saving and loading from the GMM is now supported in the cine engine
...
svn-id: r35031
2008-11-12 23:21:05 +00:00
Filippos Karapetis
f5729a4a8b
- The GMM save dialog is now working for all engines which support the appropriate features
...
- Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots
- Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started)
svn-id: r34963
2008-11-09 16:13:34 +00:00
Max Horn
40136f2590
Switched various Engine APIs to use Common::Error
...
svn-id: r34916
2008-11-06 17:05:54 +00:00
Max Horn
fe2935ad4b
Got rid of the unused 'filename' attribute in SaveStateDescriptor
...
svn-id: r34905
2008-11-05 15:41:12 +00:00
Max Horn
61aadb378d
Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
...
svn-id: r34896
2008-11-04 16:11:40 +00:00
Filippos Karapetis
b7a219ebc6
Renamed engine feature kSupportsDirectLoad to kSupportsLoadingDuringStartup, as discussed in patch #2122869
...
svn-id: r34854
2008-10-26 16:42:08 +00:00
Kari Salminen
5252f07305
Remove unnecessary function overloadings for loadBg16 and loadBg256.
...
svn-id: r34840
2008-10-22 20:45:25 +00:00
Kari Salminen
b9709b5793
Make incrustMask and incrustSprite only draw to the current background in Operation Stealth.
...
svn-id: r34838
2008-10-22 19:56:38 +00:00
Kari Salminen
c501ef1450
Cleanup (Removed an extra 'return 0').
...
svn-id: r34826
2008-10-19 08:52:04 +00:00
Max Horn
6a2f3dc0b9
Added new type Engine::Feature; pushed down some #include dependencies
...
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
9b160804ab
Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
...
svn-id: r34700
2008-09-30 12:27:38 +00:00