From 5d39fe6d017d5ddb7d5be5d3b86f03d1eb10d39d Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Tue, 18 Aug 2009 19:12:27 +0430 Subject: [PATCH] fix maxleft calculation --- fbpdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbpdf.c b/fbpdf.c index 04bd300..e15b325 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -106,7 +106,7 @@ static void mainloop() showpage(0); while ((c = readkey()) != -1) { maxhead = cairo_image_surface_get_height(surface) - fb_rows(); - maxleft = cairo_image_surface_get_height(surface) - fb_cols(); + maxleft = cairo_image_surface_get_width(surface) - fb_cols(); switch (c) { case 'j': head += step * getcount(1); -- 2.11.4.GIT