1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:17:46 +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

@ -78,8 +78,8 @@ void CheckBox::paintEvent(PaintEvent&)
auto bitmap = CharacterBitmap::createFromASCII(isChecked() ? checkedBitmap : uncheckedBitmap, 11, 11);
auto textRect = rect();
textRect.setLeft(bitmap->width() + 4);
textRect.setTop(height() / 2 - font().glyphHeight() / 2);
textRect.set_left(bitmap->width() + 4);
textRect.set_top(height() / 2 - font().glyphHeight() / 2);
Point bitmapPosition;
bitmapPosition.setX(2);