Remove landscape minimum, respect user's saved window width with 85% height cap

This commit is contained in:
pax 2026-04-06 19:15:17 -05:00
parent 4cf094f517
commit 803b5f5b24

View File

@ -262,8 +262,7 @@ class FullscreenPreview(QMainWindow):
max_h = int(avail.height() * 0.85) # 15% margin top+bottom max_h = int(avail.height() * 0.85) # 15% margin top+bottom
else: else:
max_w = max_h = 9999 max_w = max_h = 9999
min_w = int(max_w * 0.45) if aspect >= 1 else 0 # landscape minimum w = min(self.width(), max_w)
w = max(min(self.width(), max_w), min_w)
new_h = int(w / aspect) new_h = int(w / aspect)
if new_h > max_h: if new_h > max_h:
new_h = max_h new_h = max_h