---
src/main.zig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.zig b/src/main.zig
index 7b22d33..a361724 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -315,7 +315,7 @@ const Output = struct {
if (i < main_count) {
x = 0;
y = (i * main_h) + if (i > 0) cfg.inner_gaps + main_h_rem else 0;
- width = main_w - cfg.inner_gaps / 2;
+ width = if (sec_count > 0) main_w - cfg.inner_gaps / 2 else main_w;
height = (main_h + if (i == 0) main_h_rem else 0) -
if (i > 0) cfg.inner_gaps else 0;
} else {
--
2.42.0