From: Ali Gholami Rudi Date: Wed, 20 Jun 2012 18:42:21 +0000 (+0430) Subject: djvu: fix calculating the number of rows to draw X-Git-Url: https://repo.or.cz/w/fbpdf.git/commitdiff_plain/8ec9b5f197088cd79bc513fae2e3c554382426d3 djvu: fix calculating the number of rows to draw --- diff --git a/djvulibre.c b/djvulibre.c index 322dd74..f6d180b 100644 --- a/djvulibre.c +++ b/djvulibre.c @@ -65,7 +65,7 @@ int doc_draw(struct doc *doc, fbval_t *bitmap, int p, int rows, int cols, ddjvu_page_release(page); zoom /= 4; w = MIN(cols, rect.w * zoom / 10); - h = MIN(cols, rect.h * zoom / 10); + h = MIN(rows, rect.h * zoom / 10); for (i = 0; i < h; i++) { int xs = i * cols + (cols - w) / 2; for (j = 0; j < w; j++)