mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
Simplify Skia renderer API
Remove the size argument from render().
This commit is contained in:
parent
f9b8592eba
commit
599d86e4e1
6 changed files with 7 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue