1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Improve example app

This commit is contained in:
Emil Ernerfeldt
2020-05-10 19:04:10 +02:00
parent 34b4c985a2
commit f1c57cb950
7 changed files with 194 additions and 64 deletions

View File

@@ -193,7 +193,7 @@ impl Div<f32> for Vec2 {
impl std::fmt::Debug for Vec2 {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[{} {}]", self.x, self.y)
write!(f, "[{:.1} {:.1}]", self.x, self.y)
}
}
@@ -312,7 +312,7 @@ impl Sub<Vec2> for Pos2 {
impl std::fmt::Debug for Pos2 {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "[{} {}]", self.x, self.y)
write!(f, "[{:.1} {:.1}]", self.x, self.y)
}
}