forked from enlightenment/efl
in 2011, we began using formatting tools to fix problematic formatting.
in later 2011, we began using formatting tools to fix problematic formatting caused by previous runs of formatting tools used to fix problematic formatting SVN revision: 65852
This commit is contained in:
parent
6b13c32a78
commit
8b6899154c
|
@ -291,9 +291,11 @@ _ecore_x_atoms_init(void)
|
|||
num = sizeof(items) / sizeof(Atom_Item);
|
||||
atoms = alloca(num * sizeof(Atom));
|
||||
names = alloca(num * sizeof(char *));
|
||||
for (i = 0; i < num; i++) names[i] = (char *)items[i].name;
|
||||
for (i = 0; i < num; i++)
|
||||
names[i] = (char *)items[i].name;
|
||||
XInternAtoms(_ecore_x_disp, names, num, False, atoms);
|
||||
for (i = 0; i < num; i++) *(items[i].atom) = atoms[i];
|
||||
for (i = 0; i < num; i++)
|
||||
*(items[i].atom) = atoms[i];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2482,5 +2482,6 @@ void
|
|||
|
||||
ecore_event_add(ECORE_X_EVENT_GESTURE_NOTIFY_GROUP, e, NULL, NULL);
|
||||
}
|
||||
|
||||
#endif /* ifdef ECORE_XGESTURE */
|
||||
|
||||
|
|
|
@ -253,7 +253,8 @@ ecore_x_region_invert(Ecore_X_Region dest,
|
|||
int num = 0;
|
||||
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
while (bounds + num) num++;
|
||||
while (bounds + num)
|
||||
num++;
|
||||
xbound = _ecore_x_rectangle_ecore_to_x(bounds, num);
|
||||
|
||||
XFixesInvertRegion(_ecore_x_disp, dest, xbound, source);
|
||||
|
|
|
@ -1780,7 +1780,8 @@ _ecore_x_netwm_startup_info_parse(Ecore_X_Startup_Info *info,
|
|||
char value[1024];
|
||||
|
||||
/* Skip space */
|
||||
while (*data == ' ') data++;
|
||||
while (*data == ' ')
|
||||
data++;
|
||||
/* Get key */
|
||||
key = data;
|
||||
data = strchr(key, '=');
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
root) ((screen = \
|
||||
XRRRootToScreen(_ecore_x_disp, \
|
||||
root)) != -1)
|
||||
#define RANDR_CHECK_1_1_RET(ret) if(_randr_version < RANDR_1_1) return ret
|
||||
#define RANDR_CHECK_1_1_RET(ret) if (_randr_version < RANDR_1_1) \
|
||||
return ret
|
||||
|
||||
extern XRRScreenResources *(*_ecore_x_randr_get_screen_resources)(Display *
|
||||
dpy,
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
#define RANDR_VALIDATE_ROOT(screen, root) \
|
||||
((screen = XRRRootToScreen(_ecore_x_disp, root)) != -1)
|
||||
|
||||
#define RANDR_CHECK_1_2_RET(ret) if(_randr_version < RANDR_1_2) return ret
|
||||
#define RANDR_CHECK_1_2_RET(ret) if (_randr_version < RANDR_1_2) \
|
||||
return ret
|
||||
|
||||
#define RANDR_PROPERTY_EDID "EDID"
|
||||
#define RANDR_PROPERTY_BACKLIGHT "Backlight"
|
||||
|
|
|
@ -344,13 +344,15 @@ ecore_x_randr_edid_info_has_valid_checksum(unsigned char *edid,
|
|||
if (edid_length < 128) return EINA_FALSE;
|
||||
|
||||
/* Check the EDID block itself */
|
||||
for (i = 0; i < 128; i++) sum += edid[i];
|
||||
for (i = 0; i < 128; i++)
|
||||
sum += edid[i];
|
||||
if (sum) return EINA_FALSE;
|
||||
|
||||
/* Check the cea extension blocks */
|
||||
_ECORE_X_RANDR_EDID_FOR_EACH_CEA_BLOCK(edid, edid_length, cea_block_iter)
|
||||
{
|
||||
for (i = 0, sum = 0; i < 128; i++) sum += cea_block_iter[i];
|
||||
for (i = 0, sum = 0; i < 128; i++)
|
||||
sum += cea_block_iter[i];
|
||||
}
|
||||
if (sum) return EINA_FALSE;
|
||||
return EINA_TRUE;
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
#ifdef ECORE_XRANDR
|
||||
|
||||
#define RANDR_1_3 ((1 << 16) | 3)
|
||||
#define RANDR_CHECK_1_3_RET(ret) if(_randr_version < RANDR_1_3) return ret
|
||||
#define RANDR_CHECK_1_3_RET(ret) if (_randr_version < RANDR_1_3) \
|
||||
return ret
|
||||
|
||||
extern XRRScreenResources *(*_ecore_x_randr_get_screen_resources)(Display *
|
||||
dpy,
|
||||
|
|
|
@ -850,7 +850,8 @@ _ecore_x_selection_parser_files(const char *target,
|
|||
tmp[i++] = data[is++];
|
||||
else
|
||||
{
|
||||
while ((data[is] == '\r') || (data[is] == '\n')) is++;
|
||||
while ((data[is] == '\r') || (data[is] == '\n'))
|
||||
is++;
|
||||
tmp[i] = 0;
|
||||
sel->num_files++;
|
||||
t2 = realloc(sel->files, sel->num_files * sizeof(char *));
|
||||
|
|
|
@ -479,7 +479,8 @@ ecore_x_window_prop_property_set(Ecore_X_Window win,
|
|||
dat = malloc(sizeof(unsigned long) * number);
|
||||
if (dat)
|
||||
{
|
||||
for (ptr = (int *)data, i = 0; i < number; i++) dat[i] = ptr[i];
|
||||
for (ptr = (int *)data, i = 0; i < number; i++)
|
||||
dat[i] = ptr[i];
|
||||
XChangeProperty(_ecore_x_disp, win, property, type, size,
|
||||
PropModeReplace, (unsigned char *)dat, number);
|
||||
free(dat);
|
||||
|
@ -589,7 +590,8 @@ ecore_x_window_prop_list(Ecore_X_Window win,
|
|||
atoms = malloc(num * sizeof(Ecore_X_Atom));
|
||||
if (atoms)
|
||||
{
|
||||
for (i = 0; i < num; i++) atoms[i] = atom_ret[i];
|
||||
for (i = 0; i < num; i++)
|
||||
atoms[i] = atom_ret[i];
|
||||
if (num_ret)
|
||||
*num_ret = num;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue