From 74a6a0e9b63af633cd45eaf76967f0a9e872e5de Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Mon, 15 Jul 2024 19:12:22 +0200 Subject: [PATCH] Fix player border margin --- cbz/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbz/player.py b/cbz/player.py index 4204734..3a5ff80 100644 --- a/cbz/player.py +++ b/cbz/player.py @@ -123,10 +123,10 @@ class Player: scale_factor = min(scale_width, scale_height) # Calculate new dimensions - initial_width = int(first_page.image_width * scale_factor) + initial_width = int(first_page.image_width * scale_factor * 0.94) initial_height = int(first_page.image_height * scale_factor) else: - initial_width = int(available_width) + initial_width = int(available_height * 0.63) initial_height = int(available_height) # Calculate initial position to center the window on the screen