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