1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +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:
Andreas Kling 2019-01-12 06:39:34 +01:00
parent fd4e86460b
commit 780e15a6cc
10 changed files with 92 additions and 62 deletions

View file

@ -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)));
}