Commit bd458048 authored by Moritz Lipp's avatar Moritz Lipp

Include math.h in render.c

parent f78b79ec
......@@ -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 <] */
......
/* See LICENSE file for license and copyright information */
#include <math.h>
#include "render.h"
#include "zathura.h"
#include "document.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment