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

LibGfx: Adjust parameter order for Painter::draw_ui_text()

Let's put the rect first so it's the same as draw_text().
This commit is contained in:
Andreas Kling 2021-04-09 11:09:48 +02:00
parent 86a6366749
commit b7a25bfaac
3 changed files with 5 additions and 5 deletions

View file

@ -317,7 +317,7 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
if (paint_as_pressed || paint_as_hovered) {
Gfx::StylePainter::paint_button(painter, menu.rect_in_window_menubar(), palette, Gfx::ButtonStyle::CoolBar, paint_as_pressed, paint_as_hovered);
}
painter.draw_ui_text(menu.name(), text_rect, font, text_color);
painter.draw_ui_text(text_rect, menu.name(), font, text_color);
return IterationDecision::Continue;
});
}