[gnome-desktop] gnome-rr: Add dimensions in the debug output
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] gnome-rr: Add dimensions in the debug output
- Date: Wed, 20 Nov 2013 11:21:39 +0000 (UTC)
commit 5c857844aed9ff8f0b0816e00ace71ba2a9ac48f
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 20 12:20:27 2013 +0100
gnome-rr: Add dimensions in the debug output
libgnome-desktop/gnome-rr-debug.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-debug.c b/libgnome-desktop/gnome-rr-debug.c
index 21995d8..2f2bec4 100644
--- a/libgnome-desktop/gnome-rr-debug.c
+++ b/libgnome-desktop/gnome-rr-debug.c
@@ -44,11 +44,15 @@ main (int argc, char *argv[])
}
outputs = gnome_rr_screen_list_outputs (screen);
for (i = 0; outputs[i] != NULL; i++) {
+ int width_mm, height_mm;
+
g_print ("[%s]\n", gnome_rr_output_get_name (outputs[i]));
g_print ("\tconnected: %i\n", 1);
g_print ("\tbuilt-in: %i\n", gnome_rr_output_is_builtin_display (outputs[i]));
g_print ("\tprimary: %i\n", gnome_rr_output_get_is_primary (outputs[i]));
g_print ("\tid: %i\n", gnome_rr_output_get_id (outputs[i]));
+ gnome_rr_output_get_physical_size (outputs[i], &width_mm, &height_mm);
+ g_print ("\tdimensions: %ix%i", width_mm, height_mm);
/* get EDID (first try) */
result = gnome_rr_output_get_edid_data (outputs[i], &len);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]