mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:44:20 +01:00
Include math.h in render.c
This commit is contained in:
parent
f78b79ec17
commit
bd458048c3
@ -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 <] */
|
||||
|
Loading…
Reference in New Issue
Block a user