From: Lars Ingebrigtsen Date: Sun, 16 Jul 2017 14:54:51 +0000 (+0200) Subject: Always return the GDK scale X-Git-Tag: emacs-26.0.90~518^2~72 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b04132754e845d84e7e1b5c8bca581c64200aa64;p=emacs.git Always return the GDK scale * src/gtkutil.c (xg_get_scale): Return the GDK scale always. --- diff --git a/src/gtkutil.c b/src/gtkutil.c index ccc42773217..6c9e069001e 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -208,7 +208,7 @@ xg_display_open (char *display_name, Display **dpy) int xg_get_scale (struct frame *f) { - if (FRAME_VISIBLE_P (f) && FRAME_GTK_WIDGET (f)) + if (FRAME_GTK_WIDGET (f)) return gtk_widget_get_scale_factor (FRAME_GTK_WIDGET (f)); return 1; }