mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-27 10:55:52 +00:00
All right, let's double buffer the display. It looks so much better.
This performs like dogshit. I need to make some optimizations. :^)
This commit is contained in:
@@ -39,3 +39,8 @@ RGBA32* GraphicsBitmap::scanline(int y)
|
||||
return reinterpret_cast<RGBA32*>((((byte*)m_data) + (y * pitch)));
|
||||
}
|
||||
|
||||
const RGBA32* GraphicsBitmap::scanline(int y) const
|
||||
{
|
||||
unsigned pitch = m_size.width() * sizeof(RGBA32);
|
||||
return reinterpret_cast<RGBA32*>((((byte*)m_data) + (y * pitch)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user