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:
parent
fd4e86460b
commit
780e15a6cc
10 changed files with 92 additions and 62 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue