From d96819756a30e82b52798487343a4fcbdec11a88 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 27 Nov 2009 22:44:15 +0000 Subject: Fixed: polygon filling in the IMAGERGB driver when the segments contain horizontal lines. --- src/drv/cdmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drv/cdmf.c') diff --git a/src/drv/cdmf.c b/src/drv/cdmf.c index d44bb5e..3646cf5 100644 --- a/src/drv/cdmf.c +++ b/src/drv/cdmf.c @@ -354,7 +354,7 @@ static void cdpattern(cdCtxCanvas *ctxcanvas, int w, int h, const long int *patt { cdDecodeColor(*pattern++, &r, &g, &b); fprintf(ctxcanvas->file, "%d %d %d ", (int)r, (int)g, (int)b); - if (c % w == 0) + if ((c + 1) % w == 0) fprintf(ctxcanvas->file, "\n"); } } -- cgit v1.2.3