From 9a0647fdfd9be82b3de75e4d1727cb95bfb82ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Sun, 17 Jul 2022 11:42:42 +0200 Subject: [PATCH] Improve the workaround for native GdkWindows Overshooting caused the image to be one pixel taller/wider, due to using ceil() within get_display_dimensions(). --- fiv-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fiv-view.c b/fiv-view.c index a1c7065..01bedc8 100644 --- a/fiv-view.c +++ b/fiv-view.c @@ -651,7 +651,7 @@ set_scale(FivView *self, double scale, const GdkEvent *event) // when using a native X11 Window. This is a silly workaround. GdkWindow *window = gtk_widget_get_window(GTK_WIDGET(self)); if (window && gdk_window_has_native(window) && scale == 1) - scale = 1.000000000000001; + scale = 0.999999999999999; if (self->scale == scale) goto out;