aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c56
1 files changed, 30 insertions, 26 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
index 84870a8689..d0ffde12a1 100644
--- a/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
+++ b/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_damage.c
@@ -9,8 +9,8 @@ static Eina_Bool _damage_avail = EINA_FALSE;
/* external variables */
int _ecore_xcb_event_damage = -1;
-void
-_ecore_xcb_damage_init(void)
+void
+_ecore_xcb_damage_init(void)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -19,8 +19,8 @@ _ecore_xcb_damage_init(void)
#endif
}
-void
-_ecore_xcb_damage_finalize(void)
+void
+_ecore_xcb_damage_finalize(void)
{
#ifdef ECORE_XCB_DAMAGE
const xcb_query_extension_reply_t *ext_reply;
@@ -30,14 +30,14 @@ _ecore_xcb_damage_finalize(void)
#ifdef ECORE_XCB_DAMAGE
ext_reply = xcb_get_extension_data(_ecore_xcb_conn, &xcb_damage_id);
- if ((ext_reply) && (ext_reply->present))
+ if ((ext_reply) && (ext_reply->present))
{
xcb_damage_query_version_cookie_t cookie;
xcb_damage_query_version_reply_t *reply;
- cookie =
- xcb_damage_query_version_unchecked(_ecore_xcb_conn,
- XCB_DAMAGE_MAJOR_VERSION,
+ cookie =
+ xcb_damage_query_version_unchecked(_ecore_xcb_conn,
+ XCB_DAMAGE_MAJOR_VERSION,
XCB_DAMAGE_MINOR_VERSION);
reply = xcb_damage_query_version_reply(_ecore_xcb_conn, cookie, NULL);
if (reply)
@@ -54,30 +54,31 @@ _ecore_xcb_damage_finalize(void)
/**
* @defgroup Ecore_X_Damage_Group X Damage Extension Functions
- *
+ *
* Functions related to the X Damage Extension.
*/
-EAPI Eina_Bool
-ecore_x_damage_query(void)
+EAPI Eina_Bool
+ecore_x_damage_query(void)
{
return _damage_avail;
}
/**
* Create a damage object
- *
+ *
* @param drawable The drawable to monitor
* @param level The level of the damage report
* @return The damage object
- *
- * Creates a damage object to monitor changes to @p drawable,
+ *
+ * Creates a damage object to monitor changes to @p drawable,
* with the level @p level.
- *
+ *
* @ingroup Ecore_X_Damage_Group
*/
-EAPI Ecore_X_Damage
-ecore_x_damage_new(Ecore_X_Drawable drawable, Ecore_X_Damage_Report_Level level)
+EAPI Ecore_X_Damage
+ecore_x_damage_new(Ecore_X_Drawable drawable,
+ Ecore_X_Damage_Report_Level level)
{
Ecore_X_Damage damage = 0;
@@ -97,15 +98,15 @@ ecore_x_damage_new(Ecore_X_Drawable drawable, Ecore_X_Damage_Report_Level level)
/**
* Destroy a damage object
- *
+ *
* @param The damage object to destroy
- *
+ *
* Destroys the damage object @p damage
- *
+ *
* @ingroup Ecore_X_Damage_Group
*/
-EAPI void
-ecore_x_damage_free(Ecore_X_Damage damage)
+EAPI void
+ecore_x_damage_free(Ecore_X_Damage damage)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
CHECK_XCB_CONN;
@@ -120,7 +121,7 @@ ecore_x_damage_free(Ecore_X_Damage damage)
/**
* Synchronously modifies the region
- *
+ *
* @param damage The damage object to destroy
* @param repair The repair region
* @param parts The parts region
@@ -133,11 +134,13 @@ ecore_x_damage_free(Ecore_X_Damage damage)
* 1) parts = damage INTERSECT repair
* 2) damage = damage - parts
* 3) Generate DamageNotify for remaining damage areas
- *
+ *
* @ingroup Ecore_X_Damage_Group
*/
-EAPI void
-ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Region parts)
+EAPI void
+ecore_x_damage_subtract(Ecore_X_Damage damage,
+ Ecore_X_Region repair,
+ Ecore_X_Region parts)
{
LOGFN(__FILE__, __LINE__, __FUNCTION__);
CHECK_XCB_CONN;
@@ -149,3 +152,4 @@ ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Re
// ecore_x_flush();
#endif
}
+