forked from AuroraMiddleware/gtk
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