comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke A. Guest" <laguest@archeia.com>
Subject: Re: Different screen parameters
Date: Tue, 23 Jun 2020 10:14:58 +0100	[thread overview]
Message-ID: <rcsh84$cf4$1@gioia.aioe.org> (raw)
In-Reply-To: 5ef1a1cc$0$1475$e4fe514c@news.kpn.nl

On 23/06/2020 07:31, ldries46 wrote:

On KDE, you end up having to scale up the second window to the same
resolution although it doesn't stay and I've had to use a script to
reset the displays.

xrandr --output DisplayPort-0 --auto --scale 1x1 --primary --output
DisplayPort-1 --auto --scale 4x4 --right-of DisplayPort-0
xrandr --output DisplayPort-0 --auto --scale 1x1 --primary --output
DisplayPort-1 --auto --scale 2x2 --right-of DisplayPort-0

The first scales up the screen and the second scales it back down to the
correct size, this is so the KDE pager shows up correctly.

You'll then need to change font sizes.

You'll need to set up env vars as well for QT and GTK apps so they scale
properly, even then hard coded apps won't scale.

QT_AUTO_SCREEN_SCALE_FACTOR=0
GDK_SCALE=2

This whole HiDPI stuff on Linux is a mess.

> I am using a high definition screen 4K (3840 * 2160 pixels) and two
> computers one with a graphic card which can handle this resolution and
> an older one which can handle up to 1920 * 1080. (the first on Windows
> 10 the second on Linux Ubuntu). I want both computers capable of running
> my programs even if I define a the window on 2000 * 1200 for a Gtk
> project. On the computer that can handle the resolution the there is of
> course no problem. On the other the screen is window is to big for the
> resolution and is shown only partly (of course).
> 
> My question is:
> Is there an Ada library that is able to somehow read the  maximum sizes
> of the screen in pixels so I can firstly maximize my values for size
> definition in Gtk.
> 
> I already tried:
> Maximize(Mainwindow);
> Get_Size(MainWindow, Height, Width);
> 
> The result was 200 * 200


  reply	other threads:[~2020-06-23  9:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-23  6:31 Different screen parameters ldries46
2020-06-23  9:14 ` Luke A. Guest [this message]
2020-06-23  9:54 ` Jeffrey R. Carter
2020-06-24  9:29   ` ldries46
2020-06-24 12:16     ` Jeffrey R. Carter
2020-06-26  7:23       ` ldries46
2020-06-26 11:47         ` ldries46
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox