mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
GdkMonitor: Use 1 as scale fallback value
The same value we use in gtk_widget_get_scale_factor.
This commit is contained in:
parent
a2b72f89e2
commit
c78451e140
@ -404,7 +404,7 @@ gdk_monitor_get_model (GdkMonitor *monitor)
|
||||
int
|
||||
gdk_monitor_get_scale_factor (GdkMonitor *monitor)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_MONITOR (monitor), 0);
|
||||
g_return_val_if_fail (GDK_IS_MONITOR (monitor), 1);
|
||||
|
||||
return monitor->scale_factor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user