diff options
Diffstat (limited to 'src/drv/cdmf.c')
-rw-r--r-- | src/drv/cdmf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |