From a42fdf7d5c9712297f1bbe3dd0951baa8ee32447 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Tue, 12 Dec 2017 13:25:56 +0100 Subject: Formatting files --- src/gui/group.c | 10 +++++----- 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) { void group_init(Group *group, int width, int height, int x_pos, int y_pos, int padding) { assert(group != NULL); - assert(width>0); - assert(height>0); - assert(x_pos>=0); - assert(y_pos>=0); - assert(padding>=0); + assert(width > 0); + assert(height > 0); + assert(x_pos >= 0); + assert(y_pos >= 0); + assert(padding >= 0); group->component.width = width; group->component.height = height; 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) { window->title = malloc_or_die(sizeof(char) * (strlen(title) + 1)); strcpy(window->title, title); window->group_buttons = malloc_or_die(sizeof(Group)); - group_init(window->group_buttons,window->width,100,0,window->height-100,5); + group_init(window->group_buttons, window->width, 100, 0, window->height - 100, 5); window->group_pictureframe = malloc_or_die(sizeof(Group)); - group_init(window->group_pictureframe,window->width,window->height-100,0,0,5); + group_init(window->group_pictureframe, window->width, window->height - 100, 0, 0, 5); } void window_free(Window *window) { -- cgit v1.2.3