Use i32 in Position::Physical (#1350)
* Use i32 in Position::Physical * Fix multithreaded example * format
This commit is contained in:
parent
55166da437
commit
85ea3f1d5d
2 changed files with 5 additions and 2 deletions
|
|
@ -444,7 +444,7 @@ impl<P: Pixel> From<LogicalSize<P>> for Size {
|
|||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub enum Position {
|
||||
Physical(PhysicalPosition<u32>),
|
||||
Physical(PhysicalPosition<i32>),
|
||||
Logical(LogicalPosition<f64>),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue