mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +02:00
More edge cases
This commit is contained in:
@@ -22,7 +22,8 @@ void Brush::RenderRect(Renderer * ren, ui::Point position1, ui::Point position2)
|
||||
ren->xor_line(position1.X, position1.Y+height, position1.X+width, position1.Y+height);
|
||||
if(height>1){
|
||||
ren->xor_line(position1.X+width, position1.Y+1, position1.X+width, position1.Y+height-1);
|
||||
ren->xor_line(position1.X, position1.Y+1, position1.X, position1.Y+height-1);
|
||||
if(width>0)
|
||||
ren->xor_line(position1.X, position1.Y+1, position1.X, position1.Y+height-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user