GdkMonitor: Use 1 as scale fallback value

The same value we use in gtk_widget_get_scale_factor.
This commit is contained in:
Timm Bäder 2017-03-19 14:24:02 +01:00
parent a2b72f89e2
commit c78451e140

View File

@ -404,7 +404,7 @@ gdk_monitor_get_model (GdkMonitor *monitor)
int int
gdk_monitor_get_scale_factor (GdkMonitor *monitor) 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; return monitor->scale_factor;
} }