Blitter: Change some informational virtual functions to member values
This commit is contained in:
@@ -83,6 +83,7 @@ public:
|
||||
/** Interface for something that can encode a sprite. */
|
||||
class SpriteEncoder {
|
||||
bool supports_missing_zoom_levels = false;
|
||||
bool supports_32bpp = false;
|
||||
|
||||
protected:
|
||||
inline void SetSupportsMissingZoomLevels(bool supported)
|
||||
@@ -90,6 +91,11 @@ protected:
|
||||
this->supports_missing_zoom_levels = supported;
|
||||
}
|
||||
|
||||
inline void SetIs32BppSupported(bool supported)
|
||||
{
|
||||
this->supports_32bpp = supported;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
virtual ~SpriteEncoder() = default;
|
||||
@@ -102,7 +108,10 @@ public:
|
||||
/**
|
||||
* Can the sprite encoder make use of RGBA sprites?
|
||||
*/
|
||||
virtual bool Is32BppSupported() = 0;
|
||||
inline bool Is32BppSupported() const
|
||||
{
|
||||
return this->supports_32bpp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a sprite from the loader to our own format.
|
||||
|
||||
Reference in New Issue
Block a user