summaryrefslogtreecommitdiff
path: root/src/widget/widget_choicegroup.c
diff options
context:
space:
mode:
authorDusan Durech <dusan.d@centrum.sk>2008-11-15 16:08:21 +0100
committerDusan Durech <dusan.d@centrum.sk>2008-11-15 16:08:21 +0100
commit35084eaadf8b37f5c4a325f0d4b01767753ee9c3 (patch)
tree8ca9a541783690eb6087a52faafa75e9a53d1521 /src/widget/widget_choicegroup.c
parent98875c5a636f50fe89b9394b8193e86094ae14e0 (diff)
modification coding stile
Diffstat (limited to 'src/widget/widget_choicegroup.c')
-rw-r--r--src/widget/widget_choicegroup.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/widget/widget_choicegroup.c b/src/widget/widget_choicegroup.c
index 64533af..1045f81 100644
--- a/src/widget/widget_choicegroup.c
+++ b/src/widget/widget_choicegroup.c
@@ -9,8 +9,7 @@
#include "widget.h"
#include "widget_choicegroup.h"
-widget_t *newWidgetChoicegroup(int x, int y, bool_t status, list_t * list,
- void (*fce_event) (void *))
+widget_t *newWidgetChoicegroup(int x, int y, bool_t status, list_t * list, void (*fce_event) (void *))
{
widget_choicegroup_t *new;
widget_t *widget;
@@ -21,9 +20,8 @@ widget_t *newWidgetChoicegroup(int x, int y, bool_t status, list_t * list,
new->fce_event = fce_event;
new->list = list;
- widget =
- newWidget(WIDGET_TYPE_CHOICE, x, y, WIDGET_CHOICEGROUP_WIDTH,
- WIDGET_CHOICEGROUP_HEIGHT, new);
+ widget = newWidget(WIDGET_TYPE_CHOICE, x, y, WIDGET_CHOICEGROUP_WIDTH, WIDGET_CHOICEGROUP_HEIGHT, new);
+
addList(new->list, widget);
return widget;
@@ -44,9 +42,7 @@ void drawWidgetChoicegroup(widget_t * widget)
getMousePosition(&x, &y);
if (g_choicegroup == NULL) {
- g_choicegroup =
- addImageData("choice.png", IMAGE_ALPHA, "choicegroup",
- IMAGE_GROUP_BASE);
+ g_choicegroup = addImageData("choice.png", IMAGE_ALPHA, "choicegroup", IMAGE_GROUP_BASE);
}
if (p->status == TRUE) {
@@ -56,7 +52,7 @@ void drawWidgetChoicegroup(widget_t * widget)
}
drawImage(g_choicegroup, widget->x, widget->y, offset, 0,
- WIDGET_CHOICEGROUP_WIDTH, WIDGET_CHOICEGROUP_HEIGHT);
+ WIDGET_CHOICEGROUP_WIDTH, WIDGET_CHOICEGROUP_HEIGHT);
}
void setWidgetChoiceActive(widget_t * widget)
@@ -127,7 +123,7 @@ void eventWidgetChoicegroup(widget_t * widget)
getMousePosition(&x, &y);
if (x >= widget->x && x <= widget->x + WIDGET_CHOICEGROUP_WIDTH &&
- y >= widget->y && y <= widget->y + WIDGET_CHOICEGROUP_HEIGHT &&
+ y >= widget->y && y <= widget->y + WIDGET_CHOICEGROUP_HEIGHT &&
isMouseClicked()) {
setWidgetChoiceActive(widget);
}