put guards around config.h, remove trailing spaces

SVN revision: 35104
This commit is contained in:
doursse 2008-07-14 10:06:34 +00:00 committed by doursse
parent 70040d4b80
commit d569f393d6
2 changed files with 32 additions and 23 deletions

View File

@ -2,9 +2,12 @@
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 * 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 <stdlib.h> /* for NULL */
#include "config.h"
#include "Ecore.h" #include "Ecore.h"
#include "ecore_private.h" #include "ecore_private.h"
#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE #ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE
@ -14,6 +17,7 @@
# include "Ecore_WinCE.h" # include "Ecore_WinCE.h"
# include "ecore_wince_private.h" # include "ecore_wince_private.h"
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
#include "ecore_evas_private.h" #include "ecore_evas_private.h"
#include "Ecore_Evas.h" #include "Ecore_Evas.h"
@ -1022,7 +1026,7 @@ ecore_evas_software_wince_new(Ecore_WinCE_Window *parent,
y = 0; y = 0;
width = 0; width = 0;
height = 0; height = 0;
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
} }
EAPI Ecore_Evas * EAPI Ecore_Evas *
@ -1041,7 +1045,7 @@ ecore_evas_software_wince_fb_new(Ecore_WinCE_Window *parent,
y = 0; y = 0;
width = 0; width = 0;
height = 0; height = 0;
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
} }
EAPI Ecore_Evas * EAPI Ecore_Evas *
@ -1060,7 +1064,7 @@ ecore_evas_software_wince_gapi_new(Ecore_WinCE_Window *parent,
y = 0; y = 0;
width = 0; width = 0;
height = 0; height = 0;
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
} }
EAPI Ecore_Evas * EAPI Ecore_Evas *
@ -1079,7 +1083,7 @@ ecore_evas_software_wince_ddraw_new(Ecore_WinCE_Window *parent,
y = 0; y = 0;
width = 0; width = 0;
height = 0; height = 0;
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
} }
EAPI Ecore_WinCE_Window * EAPI Ecore_WinCE_Window *
@ -1089,5 +1093,5 @@ ecore_evas_software_wince_window_get(Ecore_Evas *ee)
return (Ecore_WinCE_Window *) _ecore_evas_wince_window_get(ee); return (Ecore_WinCE_Window *) _ecore_evas_wince_window_get(ee);
#else #else
return NULL; return NULL;
#endif /* BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */ #endif /* ! BUILD_ECORE_EVAS_SOFTWARE_16_WINCE */
} }

View File

@ -1,15 +1,20 @@
/* /*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 * 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.h"
#include "ecore_private.h" #include "ecore_private.h"
#ifdef BUILD_ECORE_EVAS_X11
# include "Ecore_X.h"
# include "Ecore_X_Atoms.h"
#endif
#include "ecore_evas_private.h" #include "ecore_evas_private.h"
#include "Ecore_Evas.h" #include "Ecore_Evas.h"
#ifdef BUILD_ECORE_EVAS_X11
#include "Ecore_X.h"
#include "Ecore_X_Atoms.h"
#endif
#ifdef BUILD_ECORE_EVAS_X11 #ifdef BUILD_ECORE_EVAS_X11
static int _ecore_evas_init_count = 0; static int _ecore_evas_init_count = 0;
@ -162,7 +167,7 @@ _ecore_evas_x_render(Ecore_Evas *ee)
for (l = updates; l; l = l->next) for (l = updates; l; l = l->next)
{ {
Evas_Rectangle *r; Evas_Rectangle *r;
r = l->data; r = l->data;
printf(" UP render [%p] %ix%i, [%i %i %ix%i]\n", printf(" UP render [%p] %ix%i, [%i %i %ix%i]\n",
ee, ee->w, ee->h, r->x, r->y, r->w, r->h); ee, ee->w, ee->h, r->x, r->y, r->w, r->h);
@ -243,7 +248,7 @@ _ecore_evas_x_render(Ecore_Evas *ee)
#if 0 #if 0
// if (ee->w == 640) // if (ee->w == 640)
printf(" --COPY PIXMAP\n"); printf(" --COPY PIXMAP\n");
#endif #endif
/* if we have a damage pixmap - we can avoid exposures by /* if we have a damage pixmap - we can avoid exposures by
* disabling them just for setting the mask */ * disabling them just for setting the mask */
ecore_x_event_mask_set(ee->engine.x.win, ecore_x_event_mask_set(ee->engine.x.win,
@ -329,13 +334,13 @@ _ecore_evas_x_render(Ecore_Evas *ee)
// if (ee->w == 640) // if (ee->w == 640)
{ {
Evas_List *l; Evas_List *l;
printf("RENDER [%p] [%i] %ix%i\n", printf("RENDER [%p] [%i] %ix%i\n",
ee, ee->visible, ee->w, ee->h); ee, ee->visible, ee->w, ee->h);
for (l = updates; l; l = l->next) for (l = updates; l; l = l->next)
{ {
Evas_Rectangle *r; Evas_Rectangle *r;
r = l->data; r = l->data;
printf(" render [%i %i %ix%i]\n", printf(" render [%i %i %ix%i]\n",
r->x, r->y, r->w, r->h); r->x, r->y, r->w, r->h);
@ -961,7 +966,7 @@ _ecore_evas_x_event_window_damage(void *data __UNUSED__, int type __UNUSED__, vo
#else #else
XRectangle xr; XRectangle xr;
Region tmpr; Region tmpr;
if (!ee->engine.x.damages) ee->engine.x.damages = XCreateRegion(); if (!ee->engine.x.damages) ee->engine.x.damages = XCreateRegion();
tmpr = XCreateRegion(); tmpr = XCreateRegion();
xr.x = e->x; xr.x = e->x;
@ -1067,7 +1072,7 @@ _ecore_evas_x_event_window_configure(void *data __UNUSED__, int type __UNUSED__,
if (ee->prop.avoid_damage) if (ee->prop.avoid_damage)
{ {
int pdam; int pdam;
pdam = ecore_evas_avoid_damage_get(ee); pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0); ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam); ecore_evas_avoid_damage_set(ee, pdam);
@ -1482,7 +1487,7 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
if (ee->prop.avoid_damage) if (ee->prop.avoid_damage)
{ {
int pdam; int pdam;
pdam = ecore_evas_avoid_damage_get(ee); pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0); ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam); ecore_evas_avoid_damage_set(ee, pdam);
@ -1531,7 +1536,7 @@ _ecore_evas_x_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
if (ee->prop.avoid_damage) if (ee->prop.avoid_damage)
{ {
int pdam; int pdam;
pdam = ecore_evas_avoid_damage_get(ee); pdam = ecore_evas_avoid_damage_get(ee);
ecore_evas_avoid_damage_set(ee, 0); ecore_evas_avoid_damage_set(ee, 0);
ecore_evas_avoid_damage_set(ee, pdam); ecore_evas_avoid_damage_set(ee, pdam);
@ -2121,7 +2126,7 @@ _ecore_evas_x_lower(Ecore_Evas *ee)
static void static void
_ecore_evas_x_activate(Ecore_Evas *ee) _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); ee->engine.x.win, 1, 0);
} }
@ -2919,7 +2924,7 @@ ecore_evas_software_x11_direct_resize_set(Ecore_Evas *ee, int on)
} }
else 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; ee->engine.x.using_bg_pixmap = 0;
ecore_x_window_pixmap_set(ee->engine.x.win, 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); ecore_x_window_area_expose(ee->engine.x.win, 0, 0, ee->w, ee->h);
@ -3248,7 +3253,7 @@ ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent,
} }
einfo->info.conn = ecore_x_connection_get(); einfo->info.conn = ecore_x_connection_get();
/* FIXME: uncomment that once the XCB render engine has that member */ /* 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; einfo->info.visual = screen->root_visual;
# else # else
int screen; int screen;
@ -3550,7 +3555,7 @@ ecore_evas_software_x11_16_direct_resize_set(Ecore_Evas *ee, int on)
} }
else 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; ee->engine.x.using_bg_pixmap = 0;
ecore_x_window_pixmap_set(ee->engine.x.win, 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); ecore_x_window_area_expose(ee->engine.x.win, 0, 0, ee->w, ee->h);