Include math.h in render.c

This commit is contained in:
Moritz Lipp 2011-09-29 18:51:24 +02:00
parent f78b79ec17
commit bd458048c3
2 changed files with 5 additions and 1 deletions

View File

@ -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 <] */

View File

@ -1,3 +1,7 @@
/* See LICENSE file for license and copyright information */
#include <math.h>
#include "render.h"
#include "zathura.h"
#include "document.h"