Changed to memset to make code look a bit simpler

This commit is contained in:
Duncan Frost 2014-05-14 22:07:59 +01:00
parent ff86f7e9e9
commit 84c7f33ba1
1 changed files with 1 additions and 3 deletions

View File

@ -138,9 +138,7 @@ void gfx_draw_line_on_buffer(rct_drawpixelinfo *dpi, char colour, int y, int x,
bits_pointer = dpi->bits + y*(dpi->pitch + dpi->width) + x;
//Draw the line to the specified colour
for (; no_pixels > 0; --no_pixels, ++bits_pointer){
*((uint8*)bits_pointer) = colour;
}
memset(bits_pointer, colour, no_pixels);
}