1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

Optimize the Painter::blit() loop a bit. ~3% fewer cycles, I'll take it.

This commit is contained in:
Andreas Kling 2019-01-16 19:43:01 +01:00
parent 7750e6952b
commit f651405694
4 changed files with 22 additions and 15 deletions

View file

@ -55,12 +55,3 @@ GraphicsBitmap::~GraphicsBitmap()
m_data = nullptr;
}
RGBA32* GraphicsBitmap::scanline(int y)
{
return reinterpret_cast<RGBA32*>((((byte*)m_data) + (y * m_pitch)));
}
const RGBA32* GraphicsBitmap::scanline(int y) const
{
return reinterpret_cast<const RGBA32*>((((const byte*)m_data) + (y * m_pitch)));
}