From 068e0c33960a26febe673047fa6c4bf68b63efd9 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Sun, 5 Oct 2014 12:24:14 +0100 Subject: [PATCH] Fixed bug that caused widgets to miss draw. Fix #335 --- src/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.c b/src/window.c index f7afea7c85..e61abcb944 100644 --- a/src/window.c +++ b/src/window.c @@ -1331,8 +1331,8 @@ void window_draw_widgets(rct_window *w, rct_drawpixelinfo *dpi) widgetIndex = 0; for (widget = w->widgets; widget->type != WWT_LAST; widget++) { // Check if widget is outside the draw region - if (w->x + widget->left < dpi->x + dpi->width && w->x + widget->right > dpi->x) - if (w->y + widget->top < dpi->y + dpi->height && w->y + widget->bottom > dpi->y) + if (w->x + widget->left < dpi->x + dpi->width && w->x + widget->right >= dpi->x) + if (w->y + widget->top < dpi->y + dpi->height && w->y + widget->bottom >= dpi->y) widget_draw(dpi, w, widgetIndex); widgetIndex++;