ref: 715b95962d111d961ae73d448696bc4fc483ed21
parent: e2426e3277266e230b352bb843c4f58a91a0eb2e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jul 31 23:19:44 EDT 2024
test: fix gaps
--- a/test.h
+++ b/test.h
@@ -43,20 +43,19 @@
int gap, total, mid, npix, bw, bh, lines, fill;
u8int *b;
+ gap = 1;
total = 0;
maxh = 0;
lines = map > 1;
fill = map > 2;
if(n == 1){
- gap = 8;
maxh = im[0]->h;
if(im[0]->baseline)
maxh += im[0]->baseline;
bw = 2*gap + im[0]->w;
- bh = 2*gap + maxh;
+ bh = 2*gap + maxh*2;
npix = bw * bh;
}else{
- gap = 1;
for(i = 0; i < n; i++){
if(im[i] == nil)
continue;
@@ -78,7 +77,7 @@
y = gap;
for(i = 0; i < n;){
prebase = postbase = 0;
- for(x = 0, j = i; j < n; j++){
+ for(x = gap, j = i; j < n; j++){
if(im[j] == nil)
continue;
x += im[j]->w + gap;