From: Christian Heller Date: Thu, 2 May 2013 02:13:15 +0000 (+0200) Subject: Test for minimal window size no longer necessary since windows cannot shrink so far. X-Git-Tag: tce~1323 X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=e0f6898722d88af212b9fd658aa8a54226deabc3;p=plomrogue Test for minimal window size no longer necessary since windows cannot shrink so far. --- diff --git a/windows.c b/windows.c index 5d924e9..8b82d60 100644 --- a/windows.c +++ b/windows.c @@ -151,14 +151,9 @@ void draw_windows_borders (struct Win * win, struct Win * win_active, struct Cor if (0 != win->next) { draw_windows_borders (win->next, win_active, corners, ccount + 1); } } -void draw_window(struct Win * win) { -// Draw window content if visible. - if (win->height > 1 && win->width > 1) - win->draw(win); } - void draw_windows (struct Win * win) { // Draw contents of all windows in window chain from win on. - draw_window(win); + win->draw(win); if (0 != win->next) { draw_windows (win->next); } } diff --git a/windows.h b/windows.h index 262c176..0191931 100644 --- a/windows.h +++ b/windows.h @@ -35,7 +35,6 @@ void suspend_window (struct WinMeta *, struct Win *); struct yx place_window (struct WinMeta *, struct Win *); void update_windows (struct WinMeta *, struct Win *); void destroy_window (struct Win *); -void draw_window(struct Win *); void draw_windows (struct Win *); void draw_windows_borders (struct Win *, struct Win *, struct Corners *, int); void draw_window_borders (struct Win *, char);