mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 04:05:50 +01:00
Include math.h in render.c
This commit is contained in:
parent
f78b79ec17
commit
bd458048c3
2 changed files with 5 additions and 1 deletions
|
@ -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 <] */
|
||||
|
|
4
render.c
4
render.c
|
@ -1,3 +1,7 @@
|
|||
/* See LICENSE file for license and copyright information */
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "render.h"
|
||||
#include "zathura.h"
|
||||
#include "document.h"
|
||||
|
|
Loading…
Reference in a new issue