aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:58:11 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-05 09:58:11 -0400
commitef15639e3313ef0ff66e057eedaa9957f276e27d (patch)
tree313236d10f787baa860be5b61c7d941ae1852827 /src
parentecore-xcb: Add implementation for missing API function (diff)
downloadefl-ef15639e3313ef0ff66e057eedaa9957f276e27d.tar.gz
ecore-xcb: Add implementation for missing API function
This patch adds an xcb implementation for missing function ecore_x_randr_screen_backlight_level_set @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_x/xcb/ecore_xcb_randr.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
index 766c55e425..911c183751 100644
--- a/src/lib/ecore_x/xcb/ecore_xcb_randr.c
+++ b/src/lib/ecore_x/xcb/ecore_xcb_randr.c
@@ -5,7 +5,6 @@
* ecore_x_randr_edid_display_colorscheme_get
* ecore_x_randr_edid_display_type_digital_get
* ecore_x_randr_edid_display_interface_type_get
- * ecore_x_randr_screen_backlight_level_set
* ecore_x_randr_output_subpixel_order_get
* ecore_x_randr_output_wired_clones_get
* ecore_x_randr_output_compatibility_list_get
@@ -2516,6 +2515,24 @@ ecore_x_randr_screen_size_range_get(Ecore_X_Window root,
#endif
}
+EAPI void
+ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level)
+{
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+ CHECK_XCB_CONN;
+
+#ifdef ECORE_XCB_RANDR
+ Ecore_X_Randr_Output *outputs;
+ int i = 0, ret = 0;
+
+ RANDR_CHECK_1_3_RET();
+
+ outputs = _ecore_xcb_randr_13_outputs_get(root, &ret);
+ for (i = 0; i < ret; i++)
+ ecore_x_randr_output_backlight_level_set(root, outputs[i], level);
+#endif
+}
+
/*
* @param w width of screen in px
* @param h height of screen in px