aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-20 14:36:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-20 14:36:07 +0000
commite9dea5bb9d25bf18ffc5884e13573f8f2caf7436 (patch)
tree89c06d3c0b7e40112fb9926e68c3924aa768464a /scripts
parentgenerate-alt-random: fix “new style” cube escape (diff)
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-alt-random-writes.py2
1 files changed, 2 insertions, 0 deletions
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