diff options
author | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:30:42 +1000 |
commit | 825a3d837a33f226c879cd02ad15c3fba57e8b2c (patch) | |
tree | 75f57bd9c4253508d338dc79ba8e57a7abc42255 /libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c | |
parent | Add ability to disable the test harness, or the Lua compile test. (diff) | |
download | SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.zip SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.gz SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.bz2 SledjHamr-825a3d837a33f226c879cd02ad15c3fba57e8b2c.tar.xz |
Update the EFL to what I'm actually using, coz I'm using some stuff not yet released.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c b/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c index 510da49..62f7618 100644 --- a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c +++ b/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c | |||
@@ -1528,9 +1528,9 @@ ecore_x_randr_crtc_geometry_get(Ecore_X_Window root, | |||
1528 | 1528 | ||
1529 | /** | 1529 | /** |
1530 | * @brief sets a CRTC relative to another one. | 1530 | * @brief sets a CRTC relative to another one. |
1531 | * @param crtc_r1 the CRTC to be positioned. | 1531 | * @param crtc1 the CRTC to be positioned. |
1532 | * @param crtc_r2 the CRTC the position should be relative to | 1532 | * @param crtc2 the CRTC the position should be relative to |
1533 | * @param position the relation between the crtcs | 1533 | * @param policy the relation between the crtcs |
1534 | * @param alignment in case CRTCs size differ, aligns CRTC1 accordingly at CRTC2's | 1534 | * @param alignment in case CRTCs size differ, aligns CRTC1 accordingly at CRTC2's |
1535 | * borders | 1535 | * borders |
1536 | * @return EINA_TRUE if crtc could be successfully positioned. EINA_FALSE if | 1536 | * @return EINA_TRUE if crtc could be successfully positioned. EINA_FALSE if |
@@ -2449,6 +2449,45 @@ ecore_x_randr_output_backlight_level_set(Ecore_X_Window root, | |||
2449 | return EINA_FALSE; | 2449 | return EINA_FALSE; |
2450 | } | 2450 | } |
2451 | 2451 | ||
2452 | /* | ||
2453 | * @brief check if a backlight is available | ||
2454 | * @return whether a blacklight is available | ||
2455 | */ | ||
2456 | EAPI Eina_Bool | ||
2457 | ecore_x_randr_output_backlight_available(void) | ||
2458 | { | ||
2459 | #ifdef ECORE_XCB_RANDR | ||
2460 | Ecore_X_Atom _backlight; | ||
2461 | xcb_intern_atom_cookie_t acookie; | ||
2462 | xcb_intern_atom_reply_t *areply; | ||
2463 | #endif | ||
2464 | |||
2465 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
2466 | CHECK_XCB_CONN; | ||
2467 | |||
2468 | #ifdef ECORE_XCB_RANDR | ||
2469 | RANDR_CHECK_1_2_RET(EINA_FALSE); | ||
2470 | |||
2471 | acookie = | ||
2472 | xcb_intern_atom_unchecked(_ecore_xcb_conn, 1, | ||
2473 | strlen("Backlight"), "Backlight"); | ||
2474 | areply = xcb_intern_atom_reply(_ecore_xcb_conn, acookie, NULL); | ||
2475 | |||
2476 | if (!areply) | ||
2477 | { | ||
2478 | ERR("Backlight property is not suppported on this server or driver"); | ||
2479 | return EINA_FALSE; | ||
2480 | } | ||
2481 | else | ||
2482 | { | ||
2483 | _backlight = areply->atom; | ||
2484 | free(areply); | ||
2485 | return EINA_TRUE; | ||
2486 | } | ||
2487 | #endif | ||
2488 | return EINA_FALSE; | ||
2489 | } | ||
2490 | |||
2452 | EAPI int | 2491 | EAPI int |
2453 | ecore_x_randr_edid_version_get(unsigned char *edid, unsigned long edid_length) | 2492 | ecore_x_randr_edid_version_get(unsigned char *edid, unsigned long edid_length) |
2454 | { | 2493 | { |