On Thu, 31 Aug 2023 10:14:38 -0700, Alan Coopersmith wrote:
> On 8/31/23 10:01, Vladimir Dergachev wrote:
> > I don't know exactly why they named things as they did. One
> > possibility is that the idea was that a display could consist of
> > several physical devices, like an airport display for a
On 8/31/23 10:01, Vladimir Dergachev wrote:
I don't know exactly why they named things as they did. One possibility is that
the idea was that a display could consist of several physical devices, like an
airport display for arrivals and deparatures.
I don't either, but https://www.x.org/wiki/gu
have a look, please, at the man page:
int DisplayHeight(Display *display, int screen_number);
int DisplayWidth(Display *display, int screen_number);
„What screen is that”? The one described by the parameters.
('display' is a pointer to a 'Display' structure returned by a
previous cal
> Perhaps you should share your use case on why you need to know the screen
> size when there are far better mechanisms to handle this?
Because the use of the mentioned functions/macros is simple and
straightforward. But they are flawed, unfortunately.
So what mechanism do you propose to use for
On Wed, 30 Aug 2023, Zbigniew wrote:
„The DisplayHeight macro returns the height of the specified
screen in
pixels.
The DisplayWidth macro returns the width of the screen in pixels.”
This is what I want, and this is what — as „man” page states — I
And this what you get.
Zbigniew writes:
> You already know, what I mean — since you've already guessed it: the
> physical screen I have. Why? Because that's the area where the window
> of my program will appear.
> What makes you think, that the creators of these functions, when
> designing them years ago, meant anythin
Zbigniew writes:
> Are you serious when stating, that during creation of a program I
> should play guessing game „what kind of 'subsystem' the user may
> employ”?
No, your program should simply get WxH and draw there. That's the point.
Now, certain specific programs may want to know physical ch
>> „The DisplayHeight macro returns the height of the specified
>> screen in
>> pixels.
>>
>> The DisplayWidth macro returns the width of the screen in pixels.”
>>
>> This is what I want, and this is what — as „man” page states — I
>
> And this what you get. Now when I say "Scre