forked from AuroraMiddleware/gtk
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
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user