mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Simplify that
I was *probably* trying to mimic a C ternary operator ;p
This commit is contained in:
parent
a79f9b9b54
commit
43d53f8dbe
@ -2705,7 +2705,7 @@ class KOBOTOUCH(KOBO):
|
||||
fpath = self.normalize_path(fpath.replace('/', os.sep))
|
||||
|
||||
# Never letterbox thumbnails, that's ugly. But for fullscreen covers, honor the setting.
|
||||
letterbox = letterbox_fs_covers if is_full_size else False
|
||||
letterbox = letterbox_fs_covers and is_full_size
|
||||
|
||||
# NOTE: Full size means we have to fit *inside* the given boundaries. Thumbnails, on the other hand, are *expanded* around those boundaries.
|
||||
# In Qt, it'd mean full-screen covers are resized using Qt::KeepAspectRatio, while thumbnails are resized using Qt::KeepAspectRatioByExpanding
|
||||
|
Loading…
x
Reference in New Issue
Block a user