diff options
-rw-r--r-- | lib/Fornax/CLI.rakumod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod index 3918fc1..cdc910d 100644 --- a/lib/Fornax/CLI.rakumod +++ b/lib/Fornax/CLI.rakumod @@ -54,10 +54,10 @@ multi sub MAIN( # Consider width if cells with dimension (width * width) fit # within the canvas, otherwise consider the height. if (%cell<width> * %meta<rows>) < %CANVAS<height> { - %excess<height> = abs %CANVAS<width> - %CANVAS<height>; + %excess<height> = %CANVAS<height> - (%cell<width> * %meta<rows>); $side = %cell<width>; } else { - %excess<width> = abs %CANVAS<width> - %CANVAS<height>; + %excess<width> = %CANVAS<width> - (%cell<height> * %meta<cols>); $side = %cell<height>; } |