From 35084eaadf8b37f5c4a325f0d4b01767753ee9c3 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Sat, 15 Nov 2008 16:08:21 +0100 Subject: modification coding stile --- src/widget/widget_catchkey.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widget/widget_catchkey.c') diff --git a/src/widget/widget_catchkey.c b/src/widget/widget_catchkey.c index 37fab55..b213890 100644 --- a/src/widget/widget_catchkey.c +++ b/src/widget/widget_catchkey.c @@ -18,8 +18,7 @@ widget_t *newWidgetCatchkey(int key, int x, int y, void *event) new->fce_event = event; new->active = FALSE; - return newWidget(WIDGET_TYPE_CATCHKEY, x, y, WIDGET_CATCHKEY_WIDTH, - WIDGET_CATCHKEY_HEIGHT, new); + return newWidget(WIDGET_TYPE_CATCHKEY, x, y, WIDGET_CATCHKEY_WIDTH, WIDGET_CATCHKEY_HEIGHT, new); } int getWidgetCatchKey(widget_t * widget) @@ -81,7 +80,8 @@ static int getPessAnyKey() for (i = SDLK_FIRST; i <= SDLK_COMPOSE; i++) { if (i == SDLK_NUMLOCK || // black key - i == SDLK_CAPSLOCK || i == SDLK_SCROLLOCK) { + i == SDLK_CAPSLOCK || + i == SDLK_SCROLLOCK) { continue; } @@ -107,7 +107,7 @@ void eventWidgetCatchkey(widget_t * widget) if (isMouseClicked()) { if (x >= widget->x && x <= widget->x + WIDGET_CATCHKEY_WIDTH && - y >= widget->y && y <= widget->y + WIDGET_CATCHKEY_HEIGHT) { + y >= widget->y && y <= widget->y + WIDGET_CATCHKEY_HEIGHT) { p->active = TRUE; } else { p->active = FALSE; -- cgit v1.2.3