summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
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/lib/ecore_x
parentbb8011a6378814c7c52a50886a06d2c3f763f326 (diff)
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/lib/ecore_x')
-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 @@
5 * ecore_x_randr_edid_display_colorscheme_get 5 * ecore_x_randr_edid_display_colorscheme_get
6 * ecore_x_randr_edid_display_type_digital_get 6 * ecore_x_randr_edid_display_type_digital_get
7 * ecore_x_randr_edid_display_interface_type_get 7 * ecore_x_randr_edid_display_interface_type_get
8 * ecore_x_randr_screen_backlight_level_set
9 * ecore_x_randr_output_subpixel_order_get 8 * ecore_x_randr_output_subpixel_order_get
10 * ecore_x_randr_output_wired_clones_get 9 * ecore_x_randr_output_wired_clones_get
11 * ecore_x_randr_output_compatibility_list_get 10 * ecore_x_randr_output_compatibility_list_get
@@ -2516,6 +2515,24 @@ ecore_x_randr_screen_size_range_get(Ecore_X_Window root,
2516#endif 2515#endif
2517} 2516}
2518 2517
2518EAPI void
2519ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level)
2520{
2521 LOGFN(__FILE__, __LINE__, __FUNCTION__);
2522 CHECK_XCB_CONN;
2523
2524#ifdef ECORE_XCB_RANDR
2525 Ecore_X_Randr_Output *outputs;
2526 int i = 0, ret = 0;
2527
2528 RANDR_CHECK_1_3_RET();
2529
2530 outputs = _ecore_xcb_randr_13_outputs_get(root, &ret);
2531 for (i = 0; i < ret; i++)
2532 ecore_x_randr_output_backlight_level_set(root, outputs[i], level);
2533#endif
2534}
2535
2519/* 2536/*
2520 * @param w width of screen in px 2537 * @param w width of screen in px
2521 * @param h height of screen in px 2538 * @param h height of screen in px