mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Use new type Pos2 for positions (points) instead of Vec2
This commit is contained in:
@@ -113,7 +113,7 @@ impl ExampleApp {
|
||||
corner_radius: self.corner_radius,
|
||||
fill_color: Some(gray(136, 255)),
|
||||
rect: Rect::from_min_size(
|
||||
vec2(pos.x + (i as f32) * (self.size.x * 1.1), pos.y),
|
||||
pos2(pos.x + (i as f32) * (self.size.x * 1.1), pos.y),
|
||||
self.size,
|
||||
),
|
||||
outline: Some(Outline {
|
||||
|
||||
Reference in New Issue
Block a user