From 339c8f0c3415b7498645dffcd27728b966738b65 Mon Sep 17 00:00:00 2001 From: Franz-Josef Haider Date: Tue, 6 Aug 2024 10:11:34 +0300 Subject: [PATCH] align dst calculation in bmp16_drawg_b1cos with bmp16_drawg_b1cts. Otherwise text printed in bmp16 format with this plotter is broken. --- src/tte/bmp16_drawg_b1cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tte/bmp16_drawg_b1cs.c b/src/tte/bmp16_drawg_b1cs.c index 6cdd2c1..4cce394 100644 --- a/src/tte/bmp16_drawg_b1cs.c +++ b/src/tte/bmp16_drawg_b1cs.c @@ -83,7 +83,7 @@ void bmp16_drawg_b1cos(uint gid) for(ix=0; ix<8; ix++) dstL[ix]= ((raw>>=1)&1) ? ink : paper; - dstL += dstP; + dstL += dstP/2; } srcL += srcP; }