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
This commit is contained in:
parent
e6f874ee95
commit
8d306ebccf
11 changed files with 142 additions and 141 deletions
|
@ -82,19 +82,12 @@ public:
|
|||
TransactionError endGFXTransaction(void);
|
||||
|
||||
#ifdef ENABLE_16BIT
|
||||
// Find a compatible format from the list of formats supported by the engine
|
||||
// Fallback to CLUT8 if none found
|
||||
virtual Graphics::ColorMode findCompatibleFormat(Common::List<Graphics::ColorMode> formatList);
|
||||
|
||||
// Set the depth and format of the video bitmap
|
||||
// Typically, CLUT8
|
||||
virtual void initFormat(Graphics::PixelFormat format);
|
||||
|
||||
// Game screen
|
||||
virtual Graphics::PixelFormat getScreenFormat() const { return _screenFormat; }
|
||||
|
||||
//Create a Graphics::PixelFormat to describe the requested color mode
|
||||
virtual Graphics::PixelFormat getPixelFormat(Graphics::ColorMode format);
|
||||
#endif
|
||||
|
||||
// Set the size of the video bitmap.
|
||||
|
@ -379,9 +372,6 @@ protected:
|
|||
MousePos _mouseCurState;
|
||||
byte _mouseKeyColor;
|
||||
int _cursorTargetScale;
|
||||
#ifdef ENABLE_16BIT
|
||||
uint8 _cursorBitDepth;
|
||||
#endif
|
||||
bool _cursorPaletteDisabled;
|
||||
SDL_Surface *_mouseOrigSurface;
|
||||
SDL_Surface *_mouseSurface;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue