[gtk+] GdkMonitor: Use 1 as scale fallback value
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GdkMonitor: Use 1 as scale fallback value
- Date: Sun, 19 Mar 2017 16:03:40 +0000 (UTC)
commit c78451e140c4d046fe546c0fe07c6925b0086f31
Author: Timm Bäder <mail baedert org>
Date: Sun Mar 19 14:24:02 2017 +0100
GdkMonitor: Use 1 as scale fallback value
The same value we use in gtk_widget_get_scale_factor.
gdk/gdkmonitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c
index 58c238d..7875899 100644
--- a/gdk/gdkmonitor.c
+++ b/gdk/gdkmonitor.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]