mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
21cb4671a4
commit
e9dea5bb9d
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue