Re: Thumbnails: add HiDpi folders

Méven <[email protected]>
Newsgroups gmane.linux.xdg.devel
Message-ID <CAOvFf8Mxbgqsjf1Y8aDDiNPQmTE=Sn_ukbLv6sbYPzEkJcKYjA@mail.gmail.com>
>
> Date: Mon, 1 Jun 2020 10:23:16 -0600
> From: Nate Graham <[email protected]>
> To: [email protected]
> Subject: Re: Thumbnails: add HiDpi folders
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> I like the idea. How would fractional scaling be handled though? If I'm
> using a 1.25x scale (as I am right now), would it generate an @2x
> thumbnail, store that, and scale it down for display? Or would it
> generate an @1.25x scale thumbnail?
>

Scale would be rounded up , that means 1.25 => 2, 3.25 => 4.
Under X, the application will have to down scale while painting the
thumbnails.
Under Wayland, with fractional scaling, application paint at the scale ceil
up,(1.25=> 2) and the fact that the scale factor is not an integer is non
of their concern, the compositor downscales on the GPU the application then.

-- 
Méven

_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.