summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam NAILI2017-12-12 13:25:56 +0100
committerAdam NAILI2017-12-12 13:25:56 +0100
commita42fdf7d5c9712297f1bbe3dd0951baa8ee32447 (patch)
treea6b17c7703174934724c02dba92fcb643d8d909b
parent2bf31463b7fb1649d89a9d948dc9adf56ebc8d81 (diff)
downloadmorpher-a42fdf7d5c9712297f1bbe3dd0951baa8ee32447.tar.gz
Formatting files
-rw-r--r--src/gui/group.c10
-rw-r--r--src/gui/window.c4
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
17void group_init(Group *group, int width, int height, int x_pos, int y_pos, int padding) { 17void 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
26void window_free(Window *window) { 26void window_free(Window *window) {