mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 10:45:59 +01:00
Fix compilation for GTK+ < 3.22
This commit is contained in:
parent
55055758fa
commit
f6dd3682a8
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,6 @@ zathura_update_view_ppi(zathura_t* zathura)
|
||||||
} else {
|
} else {
|
||||||
ppi = monitor_geom.width * 25.4 / width_mm;
|
ppi = monitor_geom.width * 25.4 / width_mm;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_WAYLAND
|
#ifdef GDK_WINDOWING_WAYLAND
|
||||||
/* work around apparend bug in GDK: on Wayland, monitor geometry doesn't
|
/* work around apparend bug in GDK: on Wayland, monitor geometry doesn't
|
||||||
|
@ -195,6 +194,7 @@ zathura_update_view_ppi(zathura_t* zathura)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
girara_debug("monitor width: %d mm, pixels: %d, ppi: %f", width_mm, monitor_geom.width, ppi);
|
girara_debug("monitor width: %d mm, pixels: %d, ppi: %f", width_mm, monitor_geom.width, ppi);
|
||||||
|
#endif
|
||||||
|
|
||||||
zathura_document_set_viewport_ppi(zathura->document, ppi);
|
zathura_document_set_viewport_ppi(zathura->document, ppi);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue