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: Alan Third
Subject: Re: "Fix" sag scaling for hidpi
Date: Sat, 13 Feb 2021 22:13:26 +0000

On Sat, Feb 13, 2021 at 10:57:06PM +0100, Lars Ingebrigtsen wrote:
> Alan Third <alan@idiocy.org> writes:
> 
> >> > Strange. When I do that with GDK_SCALE=2 I get both images as 333
> >> > pixels wide. The only thing that appears to have been scaled are the
> >> > menus and toolbar, everything else is the exact same size as if I use
> >> > GDK_SCALE=1.
> >> 
> >> What's your `(image-compute-scaling-factor image-scaling-factor)'?
> >
> > 1
> 
> The scaling factor is heuristically determined by how big the default
> face is.  So I'm guessing that your Emacs is returning the size in
> "logical pixels", which means that the heuristics don't trigger?

I already wrote a C function to provide the real value to lisp. Would
that be better? (I've already deleted the commit, but I'm getting real
friendly with the git reflog tonight...)
-- 
Alan Third



reply via email to

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