summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textscreen/txt_window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index e25cefc7..e024cf4e 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -307,12 +307,12 @@ void TXT_DrawWindow(txt_window_t *window, int selected)
// Draw an action area, if we have one
+ widgets = (txt_widget_t *) window;
+
if (widgets->y + widgets->h < window->window_y + window->window_h - 1)
{
// Separator for action area
- widgets = (txt_widget_t *) window;
-
TXT_DrawSeparator(window->window_x, widgets->y + widgets->h,
window->window_w);