Merged format initialization into InitSize to allow for backends not supporting gfx transactions.

svn-id: r41801
This commit is contained in:
Jody Northup 2009-06-23 02:02:51 +00:00
parent a937dfde96
commit 7c62242315
5 changed files with 30 additions and 41 deletions

View file

@ -82,10 +82,6 @@ public:
TransactionError endGFXTransaction(void);
#ifdef ENABLE_RGB_COLOR
// 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; }
@ -108,9 +104,9 @@ public:
}
#endif
// Set the size of the video bitmap.
// Typically, 320x200
virtual void initSize(uint w, uint h); // overloaded by CE backend
// Set the size and format of the video bitmap.
// Typically, 320x200 CLUT8
virtual void initSize(uint w, uint h, Graphics::PixelFormat format); // overloaded by CE backend
virtual int getScreenChangeID() const { return _screenChangeCount; }