aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/config_error_notification.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/config_error_notification.rs b/src/ui/config_error_notification.rs
index 2def4b20..b120f494 100644
--- a/src/ui/config_error_notification.rs
+++ b/src/ui/config_error_notification.rs
@@ -144,7 +144,7 @@ impl ConfigErrorNotification {
let size = buffer.logical_size();
let y_range = size.h + f64::from(PADDING) * 2.;
- let x = (f64::from(output_size.w) - size.w).max(0.) / 2.;
+ let x = (output_size.w - size.w).max(0.) / 2.;
let y = match &self.state {
State::Hidden => unreachable!(),
State::Showing(anim) | State::Hiding(anim) => -size.h + anim.value() * y_range,