exactness: cleanup some coding style isues
Just a few that I spotted when looking over the code. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11290
This commit is contained in:
parent
248f3d9d6b
commit
ea3c30ca1e
|
@ -104,7 +104,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
|
||||||
sprintf(output, "Direction %d Z %d", t->direction, t->z);
|
sprintf(output, "Direction %d Z %d", t->direction, t->z);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EXACTNESS_ACTION_MULTI_UP: case EXACTNESS_ACTION_MULTI_DOWN:
|
case EXACTNESS_ACTION_MULTI_UP:
|
||||||
|
case EXACTNESS_ACTION_MULTI_DOWN:
|
||||||
{
|
{
|
||||||
Exactness_Action_Multi_Event *t = act->data;
|
Exactness_Action_Multi_Event *t = act->data;
|
||||||
if (!t->d)
|
if (!t->d)
|
||||||
|
@ -124,7 +125,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
|
||||||
t->d, t->x, t->y, t->rad, t->radx, t->rady, t->pres, t->ang, t->fx, t->fy);
|
t->d, t->x, t->y, t->rad, t->radx, t->rady, t->pres, t->ang, t->fx, t->fy);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN:
|
case EXACTNESS_ACTION_KEY_UP:
|
||||||
|
case EXACTNESS_ACTION_KEY_DOWN:
|
||||||
{
|
{
|
||||||
Exactness_Action_Key_Down_Up *t = act->data;
|
Exactness_Action_Key_Down_Up *t = act->data;
|
||||||
sprintf(output, "Keyname %s Key %s String %s Compose %s Keycode %d",
|
sprintf(output, "Keyname %s Key %s String %s Compose %s Keycode %d",
|
||||||
|
@ -172,11 +174,13 @@ _are_scenario_entries_different(Exactness_Action *act1, Exactness_Action *act2)
|
||||||
{
|
{
|
||||||
case EXACTNESS_ACTION_MOUSE_WHEEL:
|
case EXACTNESS_ACTION_MOUSE_WHEEL:
|
||||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Mouse_Wheel));
|
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Mouse_Wheel));
|
||||||
case EXACTNESS_ACTION_MULTI_DOWN: case EXACTNESS_ACTION_MULTI_UP:
|
case EXACTNESS_ACTION_MULTI_DOWN:
|
||||||
|
case EXACTNESS_ACTION_MULTI_UP:
|
||||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Event));
|
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Event));
|
||||||
case EXACTNESS_ACTION_MULTI_MOVE:
|
case EXACTNESS_ACTION_MULTI_MOVE:
|
||||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Move));
|
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Move));
|
||||||
case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN:
|
case EXACTNESS_ACTION_KEY_UP:
|
||||||
|
case EXACTNESS_ACTION_KEY_DOWN:
|
||||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Key_Down_Up));
|
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Key_Down_Up));
|
||||||
case EXACTNESS_ACTION_EFL_EVENT:
|
case EXACTNESS_ACTION_EFL_EVENT:
|
||||||
{
|
{
|
||||||
|
@ -313,7 +317,7 @@ _grp_text_get(void *data, Evas_Object *gl, const char *part EINA_UNUSED)
|
||||||
if (!compare)
|
if (!compare)
|
||||||
{
|
{
|
||||||
Exactness_Unit *unit = efl_key_data_get(gl, "unit");
|
Exactness_Unit *unit = efl_key_data_get(gl, "unit");
|
||||||
sprintf(buf2, "Fonts directory: %s", unit->fonts_path?unit->fonts_path:"None");
|
sprintf(buf2, "Fonts directory: %s", unit->fonts_path ? unit->fonts_path : "None");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -135,7 +135,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
|
||||||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EFL_POINTER_ACTION_DOWN: case EFL_POINTER_ACTION_UP:
|
case EFL_POINTER_ACTION_DOWN:
|
||||||
|
case EFL_POINTER_ACTION_UP:
|
||||||
{
|
{
|
||||||
double rad = 0, radx = 0, rady = 0, pres = 0, ang = 0, fx = 0, fy = 0;
|
double rad = 0, radx = 0, rady = 0, pres = 0, ang = 0, fx = 0, fy = 0;
|
||||||
int b = efl_input_pointer_button_get(evp);
|
int b = efl_input_pointer_button_get(evp);
|
||||||
|
@ -147,7 +148,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
|
||||||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case EFL_POINTER_ACTION_IN: case EFL_POINTER_ACTION_OUT:
|
case EFL_POINTER_ACTION_IN:
|
||||||
|
case EFL_POINTER_ACTION_OUT:
|
||||||
{
|
{
|
||||||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, NULL, 0);
|
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, NULL, 0);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue