summaryrefslogtreecommitdiff
path: root/previewer
diff options
context:
space:
mode:
Diffstat (limited to 'previewer')
-rw-r--r--previewer/ev-previewer-window.c4
1 files changed, 3 insertions, 1 deletions
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