Use more accessors

This commit is contained in:
Paul Dicker
2025-03-30 22:01:32 +02:00
committed by Stéphane Lesimple
parent eadbf54aae
commit e9b44a04f0
13 changed files with 28 additions and 28 deletions

View File

@@ -74,7 +74,7 @@ void GuiSetSpiralWidget(Spiral *spiral, GtkWidget *widget)
gtk_widget_get_allocation(widget, &a);
if(!spiral->drawable)
{ spiral->drawable = widget->window;
{ spiral->drawable = gtk_widget_get_window(widget);
spiral->mx = a.width/2;
spiral->my = a.height/2;
}