Brushes with large spacing wouldn't be spaced properly when drawn
from bottom-to-top using the line tool. Fixed. (Pere Pujal i Carabantes patch from SourceForge bug.)
This commit is contained in:
parent
03539a98a5
commit
c007c63baf
2 changed files with 10 additions and 6 deletions
|
|
@ -42,6 +42,9 @@ $Id$
|
|||
Forcing it to always use white, which was the only background color
|
||||
in early versions of Tux Paint.
|
||||
|
||||
* Brushes with large spacing wouldn't be spaced properly when drawn
|
||||
from bottom-to-top using the line tool. Fixed.
|
||||
Pere Pujal i Carabantes <pere@fornol.no-ip.org>
|
||||
|
||||
2008.February.25 (0.9.19)
|
||||
* New Localizations:
|
||||
|
|
|
|||
|
|
@ -4090,13 +4090,14 @@ static void brush_draw(int x1, int y1, int x2, int y2, int update)
|
|||
|
||||
if (y1 > y2)
|
||||
{
|
||||
y = y1;
|
||||
y1 = y2;
|
||||
y2 = y;
|
||||
for (y = y1; y >= y2; y--)
|
||||
blit_brush(x1, y, direction);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (y = y1; y <= y2; y++)
|
||||
blit_brush(x1, y, direction);
|
||||
}
|
||||
|
||||
for (y = y1; y <= y2; y++)
|
||||
blit_brush(x1, y, direction);
|
||||
|
||||
x1 = x1 + dx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue