X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fwincontrol.c;h=7830636543232ba047a0c5f24fbbd4036a3642fa;hb=94ae2e6154f7be05e7e33d14d1c974ede344d542;hp=7933d48ad5b16b705b2a774d08dfa49715e928ee;hpb=d701e79e9297470b56315eefd431c62c9aba28b2;p=plomrogue diff --git a/src/wincontrol.c b/src/wincontrol.c index 7933d48..7830636 100644 --- a/src/wincontrol.c +++ b/src/wincontrol.c @@ -33,8 +33,6 @@ /* Return string "prefix" + "id"; malloc()'s string, remember to call free()! */ static char * string_prefixed_id(char * prefix, char id); - - /* Create Winconf, init ->view/height_type/width_type to 0, ->id to "id". */ static void create_winconf(char id, struct WinConf * wcp); @@ -50,15 +48,11 @@ static void save_win_config(char id); /* Free data pointed to inside WinConf struct. */ static void free_winconf_data(char id); - - /* Write geometry of a window to its WinConf, as positive or negative values * (dependent on state ofWinConf->height_type / WinConf->width_type). */ static void set_winconf_geometry(char id); - - /* Get WinConf by "id"; get id of WinConf mothering "win". */ static struct WinConf * get_winconf_by_id(char id); @@ -272,7 +266,7 @@ static void * get_drawfunc_by_char(char c) { return draw_win_inventory; } - if ('i' == c) + else if ('i' == c) { return draw_win_info; }