From a0587ac1948de3a7df82b8c1c43731b3a8ede1af Mon Sep 17 00:00:00 2001 From: Friz64 Date: Fri, 10 Nov 2023 19:57:50 +0100 Subject: [PATCH] Fix leftmost title pixel sometimes being cut off --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 92a3de5..7d81677 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -589,7 +589,7 @@ fn draw_headerbar( Transform::identity(), ); pixmap.draw_pixmap( - x as i32, + x.round() as i32, y as i32, text_pixmap.as_ref(), &PixmapPaint::default(),