mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- fixed bad virtual override in FSheetTexture.
This commit is contained in:
parent
351e0d7ed9
commit
ef8fd472a8
3 changed files with 4 additions and 4 deletions
|
@ -390,7 +390,7 @@ public:
|
|||
Y = y;
|
||||
}
|
||||
|
||||
int CopyPixels(FBitmap* dest, int conversion)
|
||||
int CopyPixels(FBitmap* dest, int conversion, int frame = 0) override
|
||||
{
|
||||
auto& pic = sheetBitmaps[baseSheet];
|
||||
dest->CopyPixelDataRGB(0, 0, pic.GetPixels() + 4 * (X + pic.GetWidth() * Y), Width, Height, 4, pic.GetWidth() * 4, 0, CF_BGRA);
|
||||
|
|
|
@ -110,7 +110,7 @@ public:
|
|||
FHexFontChar(uint8_t *sourcedata, int swidth, int width, int height);
|
||||
|
||||
PalettedPixels CreatePalettedPixels(int conversion, int frame = 0) override;
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0);
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0) override;
|
||||
|
||||
protected:
|
||||
int SourceWidth;
|
||||
|
@ -191,7 +191,7 @@ public:
|
|||
FHexFontChar2(uint8_t *sourcedata, int swidth, int width, int height);
|
||||
|
||||
PalettedPixels CreatePalettedPixels(int conversion, int frame = 0) override;
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0);
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0) override;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
Height = srcdata.GetHeight();
|
||||
bUseGamePalette = false;
|
||||
}
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0)
|
||||
int CopyPixels(FBitmap* bmp, int conversion, int frame = 0) override
|
||||
{
|
||||
bmp->Blit(0, 0, info);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue