Small fixes to redundand code, copy paste bugs
This commit is contained in:
parent
1fed266bf5
commit
616ab4fac2
13 changed files with 16 additions and 18 deletions
|
|
@ -534,7 +534,7 @@ void BitMap::grow_mask(int p_pixels, const Rect2 &p_rect) {
|
|||
return;
|
||||
}
|
||||
|
||||
bool bit_value = (p_pixels > 0) ? true : false;
|
||||
bool bit_value = p_pixels > 0;
|
||||
p_pixels = Math::abs(p_pixels);
|
||||
|
||||
Rect2i r = Rect2i(0, 0, width, height).clip(p_rect);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue