Mercurial > hg > openttd
changeset 17654:84f900c5aa10 draft
(svn r22426) -Fix (r22291): Drawing vertical and horizontal lines of width 1 missed drawing the first pixel.
author | frosch <frosch@openttd.org> |
---|---|
date | Thu, 05 May 2011 20:20:52 +0000 |
parents | 13644cf49ddb |
children | 756b093924ec |
files | src/blitter/base.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blitter/base.cpp +++ b/src/blitter/base.cpp @@ -63,7 +63,7 @@ frac_low += dx; y_low -= stepy; } - while (frac_high - dx / 2 > 0) { + while (frac_high - dx / 2 >= 0) { frac_high -= dx; y_high += stepy; } @@ -97,7 +97,7 @@ frac_low += dy; x_low -= stepx; } - while (frac_high - dy / 2 > 0) { + while (frac_high - dy / 2 >= 0) { frac_high -= dy; x_high += stepx; }