emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Fix" sag scaling for hidpi


From: Lars Ingebrigtsen
Subject: Re: "Fix" sag scaling for hidpi
Date: Wed, 10 Feb 2021 19:17:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Yuan Fu <casouri@gmail.com> writes:

> I’m not sure about x11+gtk, any one knows if it can report both
> physical and logical pixels when on a hidpi display?

For Gtk, we already do:

#if GTK_CHECK_VERSION (3, 22, 0)
      scale = gdk_monitor_get_scale_factor (monitor);
#elif defined HAVE_GTK3
      scale = gdk_screen_get_monitor_scale_factor (gscreen, i);
#endif

So we can use the same to compute logical pixels there.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]