From: fliep Date: Sun, 24 May 2009 10:20:56 +0000 (+0000) Subject: Proportional sizes of 100% are apparently allowed too X-Git-Tag: v0.9~382 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=3b180f43d6ad505cf1a24d199ec107da92b69576;p=projects%2Fchimara%2Fchimara.git Proportional sizes of 100% are apparently allowed too --- diff --git a/libchimara/window.c b/libchimara/window.c index fc407f7..223d7a2 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -375,7 +375,7 @@ glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype, { VALID_WINDOW_OR_NULL(split, return NULL); g_return_val_if_fail(method == (method & (winmethod_DirMask | winmethod_DivisionMask)), NULL); - g_return_val_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size >= 100), NULL); + g_return_val_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size > 100), NULL); if(split == NULL && glk_data->root_window != NULL) { @@ -1120,7 +1120,7 @@ glk_window_set_arrangement(winid_t win, glui32 method, glui32 size, winid_t keyw g_return_if_fail(g_node_is_ancestor(win->window_node, keywin->window_node)); } g_return_if_fail(method == (method & (winmethod_DirMask | winmethod_DivisionMask))); - g_return_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size >= 100)); + g_return_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size > 100)); win->split_method = method; win->constraint_size = size;