diff options
author | Adam NAILI | 2017-12-12 13:25:56 +0100 |
---|---|---|
committer | Adam NAILI | 2017-12-12 13:25:56 +0100 |
commit | a42fdf7d5c9712297f1bbe3dd0951baa8ee32447 (patch) | |
tree | a6b17c7703174934724c02dba92fcb643d8d909b /src | |
parent | 2bf31463b7fb1649d89a9d948dc9adf56ebc8d81 (diff) | |
download | morpher-a42fdf7d5c9712297f1bbe3dd0951baa8ee32447.tar.gz |
Formatting files
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/group.c | 10 | ||||
-rw-r--r-- | src/gui/window.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/group.c b/src/gui/group.c index ac2c440..cb50b1c 100644 --- a/src/gui/group.c +++ b/src/gui/group.c | |||
@@ -16,11 +16,11 @@ void group_print(void *parameter) { | |||
16 | 16 | ||
17 | void group_init(Group *group, int width, int height, int x_pos, int y_pos, int padding) { | 17 | void group_init(Group *group, int width, int height, int x_pos, int y_pos, int padding) { |
18 | assert(group != NULL); | 18 | assert(group != NULL); |
19 | assert(width>0); | 19 | assert(width > 0); |
20 | assert(height>0); | 20 | assert(height > 0); |
21 | assert(x_pos>=0); | 21 | assert(x_pos >= 0); |
22 | assert(y_pos>=0); | 22 | assert(y_pos >= 0); |
23 | assert(padding>=0); | 23 | assert(padding >= 0); |
24 | group->component.width = width; | 24 | group->component.width = width; |
25 | group->component.height = height; | 25 | group->component.height = height; |
26 | group->component.x_pos = x_pos; | 26 | group->component.x_pos = x_pos; |
diff --git a/src/gui/window.c b/src/gui/window.c index 7b5a75f..2c84aeb 100644 --- a/src/gui/window.c +++ b/src/gui/window.c | |||
@@ -18,9 +18,9 @@ void window_init(Window *window, int width, int height, char *title) { | |||
18 | window->title = malloc_or_die(sizeof(char) * (strlen(title) + 1)); | 18 | window->title = malloc_or_die(sizeof(char) * (strlen(title) + 1)); |
19 | strcpy(window->title, title); | 19 | strcpy(window->title, title); |
20 | window->group_buttons = malloc_or_die(sizeof(Group)); | 20 | window->group_buttons = malloc_or_die(sizeof(Group)); |
21 | group_init(window->group_buttons,window->width,100,0,window->height-100,5); | 21 | group_init(window->group_buttons, window->width, 100, 0, window->height - 100, 5); |
22 | window->group_pictureframe = malloc_or_die(sizeof(Group)); | 22 | window->group_pictureframe = malloc_or_die(sizeof(Group)); |
23 | group_init(window->group_pictureframe,window->width,window->height-100,0,0,5); | 23 | group_init(window->group_pictureframe, window->width, window->height - 100, 0, 0, 5); |
24 | } | 24 | } |
25 | 25 | ||
26 | void window_free(Window *window) { | 26 | void window_free(Window *window) { |