1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Put the font test into its own Window.

This commit is contained in:
Andreas Kling 2018-10-12 10:06:50 +02:00
parent 6f6f9bd84d
commit 6637dec958
3 changed files with 20 additions and 10 deletions

View file

@ -12,8 +12,8 @@ Painter::Painter(Widget& widget)
{
if (auto* window = widget.window()) {
printf("window :: %s\n", window->title().characters());
m_translation.setX(window->x());
m_translation.setY(window->y());
m_translation = window->position();
m_translation.moveBy(widget.position());
} else {
m_translation.setX(widget.x());
m_translation.setY(widget.y());