From: Christian Heller Date: Sat, 15 Jun 2013 01:05:41 +0000 (+0200) Subject: Removed superfluous loop. X-Git-Tag: tce~1221 X-Git-Url: https://plomlompom.com/repos/%7B%7Byoutube_prefix%7D%7D%7B%7Bresult.id%7D%7D?a=commitdiff_plain;h=d40804f8b6f0d7bb4107476540ef937e07d6d899;p=plomrogue Removed superfluous loop. --- diff --git a/windows.c b/windows.c index 7ef048a..f2315d9 100644 --- a/windows.c +++ b/windows.c @@ -232,9 +232,8 @@ extern void draw_all_windows (struct WinMeta * wmeta) { if (wmeta->pad_offset > 0) draw_scroll_hint(&wmeta->pad, wmeta->pad_offset, wmeta->pad_offset + 1, '<'); if (wmeta->pad_offset + wmeta->pad.size.x < getmaxx(wmeta->pad.curses_win) - 1) - for (y = 0; y < wmeta->pad.size.y; y++) - draw_scroll_hint(&wmeta->pad, wmeta->pad_offset + wmeta->pad.size.x - 1, - getmaxx(wmeta->pad.curses_win) - (wmeta->pad_offset + wmeta->pad.size.x), '>'); + draw_scroll_hint(&wmeta->pad, wmeta->pad_offset + wmeta->pad.size.x - 1, + getmaxx(wmeta->pad.curses_win) - (wmeta->pad_offset + wmeta->pad.size.x), '>'); pnoutrefresh(wmeta->pad.curses_win, 0, wmeta->pad_offset, 0, 0, wmeta->pad.size.y, wmeta->pad.size.x-1); } doupdate(); }