From bd458048c3694987d33e8761ca15cebc55761d4c Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 29 Sep 2011 18:51:24 +0200 Subject: [PATCH] Include math.h in render.c --- callbacks.c | 2 +- render.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/callbacks.c b/callbacks.c index e1c835d..a14e077 100644 --- a/callbacks.c +++ b/callbacks.c @@ -58,7 +58,7 @@ cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data) } double begin = offset->y; - double end = offset->y + page->height; + double end = offset->y + page->height * zathura->document->scale; if ( ( (begin >= lower) && (end <= upper) ) /* [> page is in viewport <]*/ || ( (begin <= lower) && (end >= lower) && (end <= upper) ) /* [> end of the page is in viewport <] */ diff --git a/render.c b/render.c index 32575c6..4d80d57 100644 --- a/render.c +++ b/render.c @@ -1,3 +1,7 @@ +/* See LICENSE file for license and copyright information */ + +#include + #include "render.h" #include "zathura.h" #include "document.h"