mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-16 05:25:51 +01:00
Indentation fix
This commit is contained in:
parent
af90d4050d
commit
1e170f0cab
1 changed files with 12 additions and 12 deletions
|
@ -177,15 +177,15 @@ zathura_update_view_ppi(zathura_t* zathura)
|
|||
}
|
||||
|
||||
#ifdef GDK_WINDOWING_WAYLAND
|
||||
/* work around apparend bug in GDK: on Wayland, monitor geometry doesn't
|
||||
/* work around apparent bug in GDK: on Wayland, monitor geometry doesn't
|
||||
* return values in application pixels as documented, but in device pixels.
|
||||
* */
|
||||
if (GDK_IS_WAYLAND_DISPLAY(display))
|
||||
{
|
||||
girara_debug("on Wayland, correcting PPI for device scale factor");
|
||||
/* not using the cached value for the scale factor here to avoid issues
|
||||
* if this function is called before the cached value is updated */
|
||||
int device_factor = gtk_widget_get_scale_factor(zathura->ui.session->gtk.view);
|
||||
girara_debug("on Wayland, correcting PPI for device scale factor = %d", device_factor);
|
||||
if (device_factor != 0) {
|
||||
ppi /= device_factor;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue