Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_evas
Modified Files:
ecore_evas_x.c ecore_evas_wince.c
Log Message:
put guards around config.h, remove trailing spaces
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -3 -r1.125 -r1.126
--- ecore_evas_x.c 30 Jun 2008 08:39:36 -0000 1.125
+++ ecore_evas_x.c 14 Jul 2008 10:06:34 -0000 1.126
@@ -1,16 +1,21 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
-#include "config.h"
+
+#ifdef _HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "Ecore.h"
#include "ecore_private.h"
-#include "ecore_evas_private.h"
-#include "Ecore_Evas.h"
#ifdef BUILD_ECORE_EVAS_X11
-#include "Ecore_X.h"
-#include "Ecore_X_Atoms.h"
+# include "Ecore_X.h"
+# include "Ecore_X_Atoms.h"
#endif
+#include "ecore_evas_private.h"
+#include "Ecore_Evas.h"
+
#ifdef BUILD_ECORE_EVAS_X11
static int _ecore_evas_init_count = 0;
@@ -162,7 +167,7 @@
for (l = updates; l; l = l->next)
{
Evas_Rectangle *r;
-
+
r = l->data;
printf(" UP render [%p] %ix%i, [%i %i %ix%i]\n",
ee, ee->w, ee->h, r->x, r->y, r->w, r->h);
@@ -243,7 +248,7 @@
#if 0
// if (ee->w == 640)
printf(" --COPY PIXMAP\n");
-#endif
+#endif
/* if we have a damage pixmap - we can avoid exposures by
* disabling them just for setting the mask */
ecore_x_event_mask_set(ee->engine.x.win,
@@ -329,13 +334,13 @@
// if (ee->w == 640)
{
Evas_List *l;
-
+
printf("RENDER [%p] [%i] %ix%i\n",
ee, ee->visible, ee->w, ee->h);
for (l = updates; l; l = l->next)
{
Evas_Rectangle *r;
-
+
r = l->data;
printf(" render [%i %i %ix%i]\n",
r->x, r->y, r->w, r->h);
@@ -961,7 +966,7 @@
#else
XRectangle xr;
Region tmpr;
-
+
if (!ee->engine.x.damages) ee->engine.x.damages = XCreateRegion();
tmpr = XCreateRegion();
xr.x = e->x;
@@ -1067,7 +1072,7 @@
if (ee->prop.avoid_damage)
{
int pdam;
-
+
pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam);
@@ -1482,7 +1487,7 @@
if (ee->prop.avoid_damage)
{
int pdam;
-
+
pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam);
@@ -1531,7 +1536,7 @@
if (ee->prop.avoid_damage)
{
int pdam;
-
+
pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam);
@@ -2121,7 +2126,7 @@
static void
_ecore_evas_x_activate(Ecore_Evas *ee)
{
- ecore_x_netwm_client_active_request(ee->engine.x.win_root,
+ ecore_x_netwm_client_active_request(ee->engine.x.win_root,
ee->engine.x.win, 1, 0);
}
@@ -2919,7 +2924,7 @@
}
else
{
-/* turn this off too- bg pixmap is controlled by avoid damage directly
+/* turn this off too- bg pixmap is controlled by avoid damage directly
ee->engine.x.using_bg_pixmap = 0;
ecore_x_window_pixmap_set(ee->engine.x.win, 0);
ecore_x_window_area_expose(ee->engine.x.win, 0, 0, ee->w, ee->h);
@@ -3248,7 +3253,7 @@
}
einfo->info.conn = ecore_x_connection_get();
/* FIXME: uncomment that once the XCB render engine has that member */
-/* einfo->info.screen = screen; */
+/* einfo->info.screen = screen; */
einfo->info.visual = screen->root_visual;
# else
int screen;
@@ -3550,7 +3555,7 @@
}
else
{
-/* turn this off too- bg pixmap is controlled by avoid damage directly
+/* turn this off too- bg pixmap is controlled by avoid damage directly
ee->engine.x.using_bg_pixmap = 0;
ecore_x_window_pixmap_set(ee->engine.x.win, 0);
ecore_x_window_area_expose(ee->engine.x.win, 0, 0, ee->w, ee->h);
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_wince.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ecore_evas_wince.c 30 Jun 2008 08:39:36 -0000 1.2
+++ ecore_evas_wince.c 14 Jul 2008 10:06:34 -0000 1.3
@@ -2,9 +2,12 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h> /* for NULL */
-#include "config.h"
#include "Ecore.h"
#include "ecore_private.h"
#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE
@@ -14,6 +17,7 @@
# include "Ecore_WinCE.h"
# include "ecore_wince_private.h"
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+
#include "ecore_evas_private.h"
#include "Ecore_Evas.h"
@@ -1022,7 +1026,7 @@
y = 0;
width = 0;
height = 0;
-#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
}
EAPI Ecore_Evas *
@@ -1041,7 +1045,7 @@
y = 0;
width = 0;
height = 0;
-#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
}
EAPI Ecore_Evas *
@@ -1060,7 +1064,7 @@
y = 0;
width = 0;
height = 0;
-#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
}
EAPI Ecore_Evas *
@@ -1079,7 +1083,7 @@
y = 0;
width = 0;
height = 0;
-#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
}
EAPI Ecore_WinCE_Window *
@@ -1089,5 +1093,5 @@
return (Ecore_WinCE_Window *) _ecore_evas_wince_window_get(ee);
#else
return NULL;
-#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
+#endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
}
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs