Merge pull request #274 from duncanspumpkin/fix_272

Fixes thick lines in line draw
This commit is contained in:
Ted John 2014-08-11 07:23:17 +01:00
commit 02d3c5ddbd
1 changed files with 1 additions and 2 deletions

View File

@ -251,9 +251,8 @@ void gfx_draw_line_on_buffer(rct_drawpixelinfo *dpi, char colour, int y, int x,
if (y < 0)return;
if (y >= dpi->height)return;
//Check to make sure we are drawing at least a pixel
if (!no_pixels) return;
if (!no_pixels) no_pixels++;
no_pixels++;
x -= dpi->x;
//If x coord outside range leave