[gtk+/wip/hires-icons: 5/9] gdk: Implement gdk_screen_get_monitor_scale_factor() on x11
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/hires-icons: 5/9] gdk: Implement gdk_screen_get_monitor_scale_factor() on x11
- Date: Fri, 10 May 2013 16:45:09 +0000 (UTC)
commit 14d3765bbd4db698a46c6b0ded71d832da6fc250
Author: Carlos Garnacho <carlos lanedo com>
Date: Fri May 10 17:49:38 2013 +0200
gdk: Implement gdk_screen_get_monitor_scale_factor() on x11
gdk/x11/gdkscreen-x11.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 760da2b..e8168cd 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -1654,3 +1654,16 @@ gdk_x11_screen_class_init (GdkX11ScreenClass *klass)
G_TYPE_NONE,
0);
}
+
+gdouble
+gdk_screen_get_monitor_scale_factor (GdkScreen *screen,
+ gint monitor_num)
+{
+ gdouble scale_factor = 1.0;
+
+ g_return_val_if_fail (GDK_IS_SCREEN (screen), 1.0);
+ g_return_val_if_fail (monitor_num < gdk_screen_get_n_monitors (screen), 1.0);
+ g_return_val_if_fail (monitor_num >= 0, 1.0);
+
+ return scale_factor;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]