diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-20 14:36:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-20 14:46:46 +0000 |
| commit | e12a9347dd00ccf49e810667c7b0c0e268dbbfaf (patch) | |
| tree | f8e4a537ba7ad7fda54c0790f8a0f45a1682e524 /scripts | |
| parent | generate-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-x | scripts/generate-alt-random-writes.py | 2 |
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 |
