mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Make size/position types generic over pixel type (#1277)
* Begin implementing DPI generics * Fix multithreaded example * Format * Fix serde test * hopefully fix most of the errors * Fix dpi module errors * More error fixings * Format * fix macos errors * Another error pass * Replace bad type signatures * more fixins
This commit is contained in:
@@ -31,8 +31,9 @@ fn events_serde() {
|
||||
|
||||
#[test]
|
||||
fn dpi_serde() {
|
||||
needs_serde::<LogicalPosition>();
|
||||
needs_serde::<PhysicalPosition>();
|
||||
needs_serde::<LogicalSize>();
|
||||
needs_serde::<PhysicalSize>();
|
||||
needs_serde::<LogicalPosition<f64>>();
|
||||
needs_serde::<PhysicalPosition<i32>>();
|
||||
needs_serde::<PhysicalPosition<f64>>();
|
||||
needs_serde::<LogicalSize<f64>>();
|
||||
needs_serde::<PhysicalSize<u32>>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user