From: Christian Heller Date: Wed, 29 May 2013 22:39:20 +0000 (+0200) Subject: Start with windows toggled on and put into a sensible starting configuration. X-Git-Tag: tce~1258 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdb.prefix%7D%7D/static/blog?a=commitdiff_plain;h=231090b75bf54933f8016781c9c3f83e6ba3d669;p=plomrogue Start with windows toggled on and put into a sensible starting configuration. --- diff --git a/roguelike.c b/roguelike.c index 0521ae9..0279043 100644 --- a/roguelike.c +++ b/roguelike.c @@ -251,6 +251,14 @@ int main (int argc, char *argv[]) { struct Win win_map = init_window(&win_meta, "Map", &world, draw_map_win); struct Win win_info = init_window(&win_meta, "Info", &world, draw_info_win); struct Win win_log = init_window(&win_meta, "Log", &world, draw_log_win); + win_keys.width = 29; + win_map.width = win_meta.width - win_keys.width - win_log.width - 2; + win_info.height = 1; + win_log.height = win_meta.height - 3; + toggle_window(&win_meta, &win_keys); + toggle_window(&win_meta, &win_map); + toggle_window(&win_meta, &win_info); + toggle_window(&win_meta, &win_log); int key; uint32_t last_turn = 0;