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

@@ -18,7 +18,11 @@
/** Base for all 32bpp blitters. */
class Blitter_32bppBase : public Blitter {
public:
uint8 GetScreenDepth() override { return 32; }
Blitter_32bppBase()
{
this->SetScreenDepth(32);
}
void *MoveTo(void *video, int x, int y) override;
void SetPixel(void *video, int x, int y, uint8 colour) override;
void SetPixel32(void *video, int x, int y, uint8 colour, uint32 colour32) override;