diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-07-17 11:42:42 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-07-17 11:45:02 +0200 |
commit | 9a0647fdfd9be82b3de75e4d1727cb95bfb82ad5 (patch) | |
tree | f864de10319b0b3fe05abbc31eb6491dcfca4873 | |
parent | 47b7600f5e69270cb03f5ad42a204a3413a431b4 (diff) | |
download | fiv-9a0647fdfd9be82b3de75e4d1727cb95bfb82ad5.tar.gz fiv-9a0647fdfd9be82b3de75e4d1727cb95bfb82ad5.tar.xz fiv-9a0647fdfd9be82b3de75e4d1727cb95bfb82ad5.zip |
Improve the workaround for native GdkWindows
Overshooting caused the image to be one pixel taller/wider,
due to using ceil() within get_display_dimensions().
-rw-r--r-- | fiv-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |