Blitter: Change some informational virtual functions to member values

This commit is contained in:
Jonathan G Rennison
2023-08-22 23:02:25 +01:00
parent 46f5fb9f25
commit c4e8b919f8
7 changed files with 37 additions and 9 deletions

View File

@@ -15,7 +15,11 @@
/** Base for all 8bpp blitters. */
class Blitter_8bppBase : public Blitter {
public:
uint8 GetScreenDepth() override { return 8; }
Blitter_8bppBase()
{
this->SetScreenDepth(8);
}
void DrawColourMappingRect(void *dst, int width, int height, PaletteID pal) override;
void *MoveTo(void *video, int x, int y) override;
void SetPixel(void *video, int x, int y, uint8 colour) override;