From: Christian Heller Date: Mon, 22 Apr 2013 16:53:42 +0000 (+0200) Subject: draw_all_windows() only starts drawing cycle if any window is actually visible. X-Git-Tag: tce~1347 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/te"st.html?a=commitdiff_plain;h=f2ab9677cc821999a91150126bcaa50ae8c7d927;p=plomrogue draw_all_windows() only starts drawing cycle if any window is actually visible. --- diff --git a/windows.c b/windows.c index f879e6b..26267aa 100644 --- a/windows.c +++ b/windows.c @@ -120,7 +120,8 @@ void draw_windows (struct WinMeta * win_meta, struct Win * win) { void draw_all_windows (struct WinMeta * win_meta) { // Draw all windows from the chain start on. - draw_windows (win_meta, win_meta->chain_start); } + if (win_meta->chain_start) + draw_windows (win_meta, win_meta->chain_start); } void draw_window(struct WinMeta * win_meta, struct Win * win) { // Draw win's content, including border and title (the latter dependent on space available for it).