Commit Graph

28 Commits

Author SHA1 Message Date
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
626f85ae5e Move findCompatibleFormat from graphics/pixelformat.h to engines/engine.cpp
This function is used in only one place. Declaring it requires common/list.h;
by putting it into pixelformat.h, which is included by common/system.h, tons
of things suddenly included list.h for no good reason.

If we ever need to call this function in other places, we can figure out aborts
more appropriate place for it.

svn-id: r46310
2009-12-09 16:45:35 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Andre Heider
007f68366f Renamed ENABLE_RGB_COLOR to USE_RGB_COLOR, and added it to config.h to guarantee a consistent build.
svn-id: r43604
2009-08-21 18:16:37 +00:00
Jody Northup
cdf751accd changed generic Graphics::PixelFormat constructor to take xBits instead of xLoss. Modified OSystem_SDL::getSupportedFormats and ScummEngine::init to account for this change.
svn-id: r42467
2009-07-14 08:27:36 +00:00
Jody Northup
828ed66555 Reinstated static inline Graphics::PixelFormat::createFormatCLUT8(), which I am told was not supposed to be removed with the others.
svn-id: r42268
2009-07-08 16:07:58 +00:00
Jody Northup
2c5d11b67b Removed PixelFormat convenience constructors at behest of Max and Eugene.
svn-id: r42207
2009-07-07 07:50:40 +00:00
Jody Northup
22e09bedaa Updated doxygen comments on API functions
svn-id: r42166
2009-07-06 07:40:28 +00:00
Matthew Hoops
c753e68024 fix compile
svn-id: r41993
2009-07-01 15:11:52 +00:00
Jody Northup
75507138cc Implemented Graphics::PixelFormat Graphics::findCompatibleFormat(Common::List<Graphics::PixelFormat> backend, Common::List<Graphics::PixelFormat> frontend)
svn-id: r41986
2009-07-01 06:33:50 +00:00
Jody Northup
f10946545a Allowed for 16, 24, and 32 bit pixel format factory constructors to be used without backend RGB color support
svn-id: r41985
2009-07-01 04:06:13 +00:00
Jordi Vilalta Prat
5e9285e8fa Fixed a few formatting bits
svn-id: r41973
2009-06-30 08:25:08 +00:00
Jody Northup
c0c0aed488 Factory constructors for ARGB BGR ABGR and BGRA pixel formats.
svn-id: r41697
2009-06-20 05:31:23 +00:00
Jody Northup
f7dd1c15ed renamed ENABLE_16BIT define to more accurate ENABLE_RGB_COLOR
svn-id: r41696
2009-06-20 05:23:09 +00:00
Torbjörn Andersson
8b6ed92376 Fixed compilation.
svn-id: r41695
2009-06-20 05:08:07 +00:00
Jody Northup
704386d3b0 Removed replaced Graphics::ColorMode enum type with factory methods for Graphics::PixelFormat.
svn-id: r41662
2009-06-19 09:28:55 +00:00
Torbjörn Andersson
78eed8b7c4 Fixed warning. (GCC doesn't like commas at the end of an enum list.)
svn-id: r41586
2009-06-16 17:52:32 +00:00
Jody Northup
d3283f86fc Simplified colormode enum
svn-id: r41578
2009-06-16 05:34:12 +00:00
Eugene Sandulenko
5d61784dae Remove uglyness with PixelFormat initialization.
svn-id: r41541
2009-06-15 11:35:51 +00:00
Jody Northup
c97bfd16f9 made Graphics::PixelFormat(ColorMode) constructor explicit, removed Graphics::PixelFormat(int bitFormat) constructor that was never really implemented anyway
svn-id: r41540
2009-06-15 10:10:22 +00:00
Jody Northup
8d306ebccf Added kUnsupportedColorMode error code brought Scumm engine and SDL backend into compliance with API outlined in http://scummvmupthorn09.wordpress.com/2009/06/14/how-this-is-going-to-work/
Provided convenient Graphics::PixelFormat constructors for ColorMode enums, and bitformat integers.
Removed last vestiges (I think) of initial cursor hack.

svn-id: r41539
2009-06-15 09:45:19 +00:00
Jody Northup
2ee51a8fa1 Unfinished proof of concept regarding my compromise with LordHoto in IRC.
svn-id: r41464
2009-06-12 08:49:45 +00:00
Jody Northup
6adbd0c41e Renamed Graphics::ColorFormat to Graphics::ColorMode, streamlined enum by removing order section and temporarily removing kFormatARGB1555
Converted cursor code to make use of _screenFormat, instead of a parameter passed directly to it by the engine.
Adjusted scumm engine to account for these changes.
This should probably have been two separate commits, but the changes concern the same files...

svn-id: r41443
2009-06-11 05:56:00 +00:00
Jody Northup
c426dd99a4 Laying the foundation for preliminary bitdepth negotiation. (No functionality changes yet)
svn-id: r41396
2009-06-09 07:55:43 +00:00
Max Horn
8d8e9d3aaa Must include common/scummsys.h in graphics/pixelformat.h because it uses type 'byte'
svn-id: r40513
2009-05-12 23:28:49 +00:00
Kari Salminen
d85e3b72d2 Add color component bit count (rBits, gBits, bBits, aBits) and maximum value (rMax, gMax, bMax, aMax) convenience functions to PixelFormat-struct (If someone objects to adding these, holler and/or revert this commit, I can live without 'em but they'd ease some parts of Cine::Palette-code).
svn-id: r39711
2009-03-27 20:56:15 +00:00
Johannes Schickel
adf15c1007 Added an '!=' operator to PixelFormat.
svn-id: r35998
2009-01-22 15:53:05 +00:00
Max Horn
abc06ca18e Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
2009-01-22 04:35:10 +00:00