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>
This commit is contained in:
Chris Michael 2016-04-05 09:58:11 -04:00
parent bb8011a637
commit ef15639e33
1 changed files with 18 additions and 1 deletions

View File

@ -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