* Print a warning, if thumbnail scrollframe size exceeds the maximum supported by...
authorUrban Wallasch <urban.wallasch@freenet.de>
Sat, 8 May 2021 12:57:57 +0000 (14:57 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Sat, 8 May 2021 12:57:57 +0000 (14:57 +0200)
ffpreview.py

index dc17993f4e6dca6636bc29f228e8552f5d260c20..aaca49e0859652a2a7adcad9965a67c536332577 100755 (executable)
@@ -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']