1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

Fix bug in SizeInfo::contains_point

Accidentally broke it when refactoring.
This commit is contained in:
Joe Wilm 2017-05-06 17:37:01 -07:00
parent 1d949d72d4
commit cbabef36ed

View file

@ -571,9 +571,9 @@ impl SizeInfo {
}
fn contains_point(&self, x: usize, y:usize) -> bool {
x <= (self.width - self.padding_x) as usize ||
x >= self.padding_x as usize ||
y <= (self.height - self.padding_y) as usize ||
x <= (self.width - self.padding_x) as usize &&
x >= self.padding_x as usize &&
y <= (self.height - self.padding_y) as usize &&
y >= self.padding_y as usize
}