From: Urban Wallasch Date: Sat, 8 May 2021 12:57:57 +0000 (+0200) Subject: * Print a warning, if thumbnail scrollframe size exceeds the maximum supported by... X-Git-Tag: v0.1~2 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=138800479b398cc1da9b3155547b82b6f616972d;p=ffpreview.git * Print a warning, if thumbnail scrollframe size exceeds the maximum supported by Tkinter. --- diff --git a/ffpreview.py b/ffpreview.py index dc17993..aaca49e 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -656,6 +656,8 @@ def fill_grid(cols): x += 1 if x == cols: x = 0; y += 1 + if cfg['grid_columns']*tlwidth > 32767 or y*tlheight > 32767: + eprint('WARNING: grid dimensions exceed maximum size, display will be garbled!') def on_resize(event): cols = cfg['grid_columns']