Skip to content

Commit

Permalink
In debug logging, print 'fixed' values as floats
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Apr 17, 2024
1 parent 8d161e5 commit 8442fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wayland-backend/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<Id: std::fmt::Display, Fd: AsRawFd> std::fmt::Display for Argument<Id, Fd>
match self {
Self::Int(value) => write!(f, "{}", value),
Self::Uint(value) => write!(f, "{}", value),
Self::Fixed(value) => write!(f, "{}", value),
Self::Fixed(value) => write!(f, "{:.4}", *value as f64 / 256.0),
Self::Str(value) => write!(f, "{:?}", value),
Self::Object(value) => write!(f, "{}", value),
Self::NewId(value) => write!(f, "{}", value),
Expand Down

0 comments on commit 8442fa9

Please sign in to comment.