[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
- Re: "Fix" sag scaling for hidpi, (continued)
- Re: "Fix" sag scaling for hidpi, Lars Ingebrigtsen, 2021/02/06
- Re: "Fix" sag scaling for hidpi, Eli Zaretskii, 2021/02/06
- Re: "Fix" sag scaling for hidpi, Lars Ingebrigtsen, 2021/02/06
- Re: "Fix" sag scaling for hidpi, Eli Zaretskii, 2021/02/06
- Re: "Fix" sag scaling for hidpi, Lars Ingebrigtsen, 2021/02/07
- Re: "Fix" sag scaling for hidpi, Robert Pluim, 2021/02/07
- Re: "Fix" sag scaling for hidpi, Alan Third, 2021/02/09
- Re: "Fix" sag scaling for hidpi, Lars Ingebrigtsen, 2021/02/10
- Re: "Fix" sag scaling for hidpi, Yuan Fu, 2021/02/10
- Re: "Fix" sag scaling for hidpi, Yuan Fu, 2021/02/10
- Re: "Fix" sag scaling for hidpi,
Lars Ingebrigtsen <=
- Re: "Fix" sag scaling for hidpi, Robert Pluim, 2021/02/10
- Re: "Fix" sag scaling for hidpi, Lars Ingebrigtsen, 2021/02/10
- Re: "Fix" sag scaling for hidpi, Basil L. Contovounesios, 2021/02/10
- Re: "Fix" sag scaling for hidpi, Robert Pluim, 2021/02/11
- Re: "Fix" sag scaling for hidpi, Basil L. Contovounesios, 2021/02/11
- Re: "Fix" sag scaling for hidpi, Robert Pluim, 2021/02/11
- Cleaning out old X11 toolkits?, chad, 2021/02/11
- Re: Cleaning out old X11 toolkits?, Eli Zaretskii, 2021/02/12
- Re: Cleaning out old X11 toolkits?, Colin Baxter, 2021/02/12
- Re: Cleaning out old X11 toolkits?, Eli Zaretskii, 2021/02/12