9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Philip Silva <philip.silva@protonmail.com>
To: 9front@9front.org
Subject: Re: [9front] hidpi
Date: Mon, 20 Dec 2021 19:02:05 +0000	[thread overview]
Message-ID: <hfzFF69SkwB0-eoWM5sl6D-g-pfKI359Xiu7lqR0_8CQYMZqLveeljJ4MPxgsIorComTcazgAWxU8Muc16Qq1A_-Cxxqpg801Hf2abf4DnY=@protonmail.com> (raw)
In-Reply-To: <4828C18115F30E3A05899AE665C7651F@9lab.org>

Yes exactly. I mean at least the first patch would just add the fields displaydpi+forcedpi to the Display struct and allow querying those. So it would be possible to have applications to deal with different DPIs.

 From what I understand from the plan9port code, on macOS it makes a smart guess [1] if it's retina or not (=> displaydpi value). Also users can toggle CMD+R [2] and toggle that manually (=> forcedpi value).

[1] https://github.com/9fans/plan9port/blob/master/src/cmd/devdraw/mac-screen.m#L480
[2] https://github.com/9fans/plan9port/blob/master/src/cmd/devdraw/srv.c#L521

> I don't like *automatically* setting DPI depending on what lies Xorg tells us.

True that's quite a pain. Maybe that's why it's such a mess on Linux.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Monday, December 20th, 2021 at 18:59, <igor@9lab.org> wrote:

> Hi Philip,
>
> This reminds me of a plan9port feature to change DPI (useful
>
> on a high res display, e.g. Retina display). Are you trying
>
> to achieve something similar as this:
>
> • https://groups.google.com/g/plan9port-dev/c/rXtpIufTrbM
>
> • https://github.com/9fans/plan9port/blob/master/src/cmd/devdraw/devdraw.c#L976
>

  parent reply	other threads:[~2021-12-20 19:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 16:13 Philip Silva
2021-12-20 16:34 ` hiro
2021-12-20 17:04 ` [9front] hidpi Philip Silva
2021-12-20 17:29   ` hiro
2021-12-20 19:15   ` Noam Preil
2021-12-20 19:34     ` ori
2021-12-20 20:50       ` ori
2021-12-20 21:10         ` hiro
2021-12-20 21:19           ` ori
2021-12-20 22:02             ` sirjofri
2021-12-21  0:29         ` Philip Silva
2021-12-21  8:37           ` hiro
2021-12-20 21:47       ` Noam Preil
2021-12-20 17:59 ` [9front] hidpi igor
2021-12-20 18:28   ` hiro
2021-12-20 19:27     ` Noam Preil
2021-12-20 19:02   ` Philip Silva [this message]
2021-12-22  8:39 ` igor
2021-12-22 11:31   ` Philip Silva
2021-12-23 13:11 igor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hfzFF69SkwB0-eoWM5sl6D-g-pfKI359Xiu7lqR0_8CQYMZqLveeljJ4MPxgsIorComTcazgAWxU8Muc16Qq1A_-Cxxqpg801Hf2abf4DnY=@protonmail.com' \
    --to=philip.silva@protonmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).