From 138800479b398cc1da9b3155547b82b6f616972d Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Sat, 8 May 2021 14:57:57 +0200 Subject: [PATCH] * Print a warning, if thumbnail scrollframe size exceeds the maximum supported by Tkinter. --- ffpreview.py | 2 ++ 1 file changed, 2 insertions(+) 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'] -- 2.30.2