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:
parent
6f6f9bd84d
commit
6637dec958
3 changed files with 20 additions and 10 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue