diff options
Diffstat (limited to 'backends/platform')
| -rw-r--r-- | backends/platform/sdl/sdl.h | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index b36139f24b..b788022d57 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -88,6 +88,18 @@ public:  	// Game screen  	virtual Graphics::PixelFormat getScreenFormat() const { return _screenFormat; } + +	// Highest supported +	virtual Graphics::PixelFormat getBestFormat() const { +	//TODO scale down 16/32 bit based on hardware support +#ifdef ENABLE_32BIT		 +		return Graphics::PixelFormat(Graphics::kFormatRGBA8888); +#elif defined ENABLE_16BIT +		return Graphics::PixelFormat(Graphics::kFormatRGB565); +#else +		return Graphics::PixelFormat(Graphics::kFormatCLUT8); +#endif +	}  #endif  	// Set the size of the video bitmap.  | 
