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:
parent
1d949d72d4
commit
cbabef36ed
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue