mirror of https://github.com/OpenTTD/OpenTTD
(svn r22426) -Fix (r22291): Drawing vertical and horizontal lines of width 1 missed drawing the first pixel.
parent
1e8f2cd7e9
commit
f976cddcba
|
@ -63,7 +63,7 @@ void Blitter::DrawLine(void *video, int x, int y, int x2, int y2, int screen_wid
|
|||
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 @@ void Blitter::DrawLine(void *video, int x, int y, int x2, int y2, int screen_wid
|
|||
frac_low += dy;
|
||||
x_low -= stepx;
|
||||
}
|
||||
while (frac_high - dy / 2 > 0) {
|
||||
while (frac_high - dy / 2 >= 0) {
|
||||
frac_high -= dy;
|
||||
x_high += stepx;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue