From fa8a594d66fc1e030bf58744c9ea5277a9f502fa Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Sat, 15 Mar 2025 12:24:15 -0400
Subject: [PATCH] fixes

---
 src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 01bf014..b5dfd0d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@ use image::{GenericImageView, ImageReader, Rgba};
 const TOAST_TIME_SECONDS: u64 = 10;
 const CENTER_X: f64 = 100.0;
 const CENTER_Y: f64 = 100.0;
-const BREAD_HEIGHT: f64 = 0.3;
+const BREAD_HEIGHT: f64 = 0.4;
 const IDLE_HEIGHT: f64 = BREAD_HEIGHT + 8.0;
 const PIXEL_SIZE_MM: f64 = 1.5;
 
@@ -22,8 +22,8 @@ fn main() -> anyhow::Result<()> {
 
             if black {
                 toast(
-                    x as f64 - (img.width() as f64 / 2.0),
-                    y as f64 + (img.height() as f64 / 2.0), // correct for reflection when printing
+                    x as f64 - (img.width() as f64),
+                    (img.height() as f64) - y as f64, // correct for reflection when printing
                 );
             }
         }
-- 
GitLab