mirror of
https://github.com/hyugogirubato/cbz.git
synced 2026-09-26 21:41:03 +00:00
Fix player border margin
This commit is contained in:
+2
-2
@@ -123,10 +123,10 @@ class Player:
|
|||||||
scale_factor = min(scale_width, scale_height)
|
scale_factor = min(scale_width, scale_height)
|
||||||
|
|
||||||
# Calculate new dimensions
|
# 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)
|
initial_height = int(first_page.image_height * scale_factor)
|
||||||
else:
|
else:
|
||||||
initial_width = int(available_width)
|
initial_width = int(available_height * 0.63)
|
||||||
initial_height = int(available_height)
|
initial_height = int(available_height)
|
||||||
|
|
||||||
# Calculate initial position to center the window on the screen
|
# Calculate initial position to center the window on the screen
|
||||||
|
|||||||
Reference in New Issue
Block a user