Simplify Skia renderer API

Remove the size argument from render().
This commit is contained in:
Simon Hausmann 2023-05-26 08:25:28 +02:00 committed by Simon Hausmann
parent f9b8592eba
commit 599d86e4e1
6 changed files with 7 additions and 9 deletions

View file

@ -87,7 +87,7 @@ struct MyWindowAdapter : public slint_platform::WindowAdapter
void render()
{
m_renderer->render(window(), physical_size());
m_renderer->render(window());
if (has_active_animations())
request_redraw();
}

View file

@ -70,7 +70,7 @@ public:
{
slint_platform::update_timers_and_animations();
m_renderer->render(window(), physical_size());
m_renderer->render(window());
if (has_active_animations()) {
requestUpdate();