From e9dea5bb9d25bf18ffc5884e13573f8f2caf7436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 20 Dec 2020 15:36:07 +0100 Subject: [PATCH] generate-alt-random: override detected width/height when --cols/--rows have been used This ensures we have a valid width and height, that matches what the PGO helper binary expects. --- scripts/generate-alt-random-writes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate-alt-random-writes.py b/scripts/generate-alt-random-writes.py index e68a00f9..202c99c5 100755 --- a/scripts/generate-alt-random-writes.py +++ b/scripts/generate-alt-random-writes.py @@ -45,8 +45,10 @@ def main(): if opts.rows is not None: lines = opts.rows + height = 15 * lines # PGO helper binary hardcodes cell height to 15px if opts.cols is not None: cols = opts.cols + width = 8 * cols # PGO help binary hardcodes cell width to 8px # Number of characters to write to screen count = 256 * 1024**1