format code

This commit is contained in:
xianjimli 2018-10-25 14:59:29 +08:00
parent 1a6e715958
commit 9a2438cad4
2 changed files with 3 additions and 3 deletions

View File

@ -667,7 +667,7 @@ ret_t window_manager_dispatch_input_event(widget_t* widget, event_t* e) {
pointer_event_t* evt = (pointer_event_t*)e;
pointer_event_rotate(evt, system_info());
if(evt->x != wm->last_x || evt->y != wm->last_y) {
if (evt->x != wm->last_x || evt->y != wm->last_y) {
wm->last_x = evt->x;
wm->last_y = evt->y;
@ -688,7 +688,7 @@ ret_t window_manager_dispatch_input_event(widget_t* widget, event_t* e) {
evt->ctrl = wm->ctrl;
evt->shift = wm->shift;
widget_on_pointer_up(widget, evt);
wm->last_x = evt->x;
wm->last_y = evt->y;
wm->pressed = FALSE;

View File

@ -84,7 +84,7 @@ static ret_t list_item_on_event(widget_t* widget, event_t* e) {
pointer_event_t* evt = (pointer_event_t*)e;
uint32_t dy = tk_abs(evt->y - list_item->down.y);
if(dy > 6) {
if (dy > 6) {
list_item->dragged = TRUE;
list_item_remove_timer(widget);
widget_set_state(widget, WIDGET_STATE_NORMAL);