mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
parent
08a07d4ae5
commit
d76a0feef6
@ -7617,7 +7617,10 @@ gtk_widget_get_scale_factor (GtkWidget *widget)
|
||||
display = _gtk_widget_get_display (widget);
|
||||
monitor = gdk_display_get_monitor (display, 0);
|
||||
|
||||
return gdk_monitor_get_scale_factor (monitor);
|
||||
if (monitor)
|
||||
return gdk_monitor_get_scale_factor (monitor);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user