From c75f49d323a17d244e3363c2fc9152bc275c5fb2 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Wed, 19 Oct 2016 12:36:30 -0400 Subject: Take monitor scale factor into account when calculating zoom. https://github.com/linuxmint/xreader/commit/c47a1f4 --- previewer/ev-previewer-window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'previewer') diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c index e92eb75d..45545fbf 100644 --- a/previewer/ev-previewer-window.c +++ b/previewer/ev-previewer-window.c @@ -71,9 +71,11 @@ static gdouble get_screen_dpi (EvPreviewerWindow *window) { GdkScreen *screen; + gint monitor; screen = gtk_window_get_screen (GTK_WINDOW (window)); - return ev_document_misc_get_screen_dpi (screen); + monitor = gdk_screen_get_monitor_at_window(screen, gtk_widget_get_window(GTK_WIDGET(GTK_WINDOW(window)))); + return ev_document_misc_get_screen_dpi (screen, monitor); } #if GTKUNIXPRINT_ENABLED -- cgit v1.2.1