From aaaf06e94d117e26aaeddcdb98e51f77a3b4f32c Mon Sep 17 00:00:00 2001 From: Duncan Date: Tue, 17 Jun 2014 12:20:34 +0100 Subject: [PATCH] Fixed bug in gfx_fill_rect As expected _left was incorrect. --- src/gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.c b/src/gfx.c index b77beccde5..71bba51ea9 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -413,7 +413,7 @@ void gfx_fill_rect(rct_drawpixelinfo *dpi, int left, int top, int right, int bot for (int no_pixels = right_; no_pixels >=0; --no_pixels) { if (!(pattern & (1 << pattern_x))) - *dest_pointer = (char*)(left_ & 0xFF); //left seems odd here + *dest_pointer = colour & 0xFF; pattern_x = (pattern_x + 1) % 15; dest_pointer++;