GRAPHICS: Fix invalid memory write in the DotMatrix scaler

This commit is contained in:
Cameron Cawley 2021-11-21 23:53:34 +00:00
parent b281dc356d
commit f590352165

View File

@ -39,7 +39,7 @@ protected:
uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y) override;
private:
// Allocate enough for 32bpp formats
uint32 lookup[16];
uint32 lookup[17];
template<typename Pixel>
void scaleIntern(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr,
uint32 dstPitch, int width, int height, int x, int y);