From 41366dea0ee6702f4cb5f9bc12d62530c46c8c12 Mon Sep 17 00:00:00 2001
From: Ben Bridle <bridle.benjamin@gmail.com>
Date: Tue, 29 Oct 2024 09:24:06 +1300
Subject: Divide the default screen dimensions by the zoom factor

Without this, the otherwise normal default screen dimensions of 800x600
would be scaled to a physical size of 2400x1800 at a zoom factor of 3.
---
 src/bin/br.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/bin')

diff --git a/src/bin/br.rs b/src/bin/br.rs
index 632291c..ce823d9 100644
--- a/src/bin/br.rs
+++ b/src/bin/br.rs
@@ -363,7 +363,7 @@ impl Run {
     pub fn dimensions(&self) -> Option<geometry::Dimensions<u16>> {
         let size = match &self.screen {
             Some(parsed) => geometry::Dimensions::new(parsed.width, parsed.height),
-            None => DEFAULT_SCREEN_SIZE,
+            None => DEFAULT_SCREEN_SIZE / (self.scale() as u16),
         };
         match size.is_zero() {
             true => None,
-- 
cgit v1.2.3-70-g09d2