tree: update to latest version of wp_fractional_scale
This commit is contained in:
parent
e61d6ab074
commit
5b2eb5855a
22 changed files with 104 additions and 54 deletions
|
|
@ -39,10 +39,6 @@ impl Fixed {
|
|||
self.0 >> 8
|
||||
}
|
||||
|
||||
pub fn round_up(self) -> i32 {
|
||||
(self.0 + 255) >> 8
|
||||
}
|
||||
|
||||
pub fn apply_fract(self, i: i32) -> Self {
|
||||
Self((i << 8) | (self.0 & 255))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue