delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/10/14/14:27:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=Bp1p2Ap
gSkJLeqEnNcvvVkQqoZB9pgrHGhaKGsIioujCIZzaOk0cZrbyH0hBETlCxI421fi
C+ADutRmfzf7IF/Us0o7DAqkphpiUTEVAzjaQgu7AZrjjAMv/8oqZDNz5/SrgOW3
9D8XD6RXumY9SlZy3hsS8hXt32M4+oWwNfEg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=KR6D7lDeU2WzL
4Pl4pBbtXiyHc0=; b=g+rKyJrt8a2yYYN65+8XW6xaK8z4pGZ+vEpH1H/YkLEVH
tlCW0MlL/GF7cAeGAHxQVM+ffWUXeg6MKO1Cm6vQgU5w26UDhopCQfwn3wMQypXm
SPFn7xaBjmv/CC+Vgc6pXbgRbWvfkmzXMNN0cAdIAYnP12IbIDo+tqW/JPWgQ0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=laptop, rendered, blank, Will
X-HELO: mail-yw1-f44.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Wj871qa0Y4fGZLxy7Qb1mMOnrAElD6mJRTjrADwgQiw=; b=W9Fijzhn+v6NubmKiEW23tiS2MbclSdJRiRiOZeRPAiRzVZqX5c5OddDtY4FvRMcbz Vx58r7eZoWi6IxpHRdqXaWPqNP/+0+GD6Xz6lm91HD36cnqa2sRPSBQJ/HQWD9Uww+R8 HPRFuSbjsgMaKsF4nMpiTS+j8iIBY0PNKQ8cPHxNDfghkjXTD92L4NMVGOE7f931R+DQ kvisgGfDU9w0TKetmR9w6GS3tzfeBFniJwjeGOhbI2JUFhralEv0zvHk1Z13OLh3NbiY Ky7q5HxXCGnApl6dT5bw2Wpn9DsHzIdoSD1MIKeqEGiO3BtJQPM5vR2NcgOyMHyuqs2p pVWg==
MIME-Version: 1.0
References: <CAPTtex+HUf7-4+vF+dVRRhRBgPOT3H+a2B8nUGPp+Oj5FFZgxw AT mail DOT gmail DOT com> <CAPTtexK1fA3caz5RpD8eUoyKQRUjh7n_HNJLfQvYrHZHvu0pBw AT mail DOT gmail DOT com> <f5ec8d17-1189-8911-901e-a7c8f0c1b7dc AT dronecode DOT org DOT uk> <CAPTtexJ7oxFbnAZxdBCj23yzAFQnpuZg0qOD2XyvFjsHjwEXmg AT mail DOT gmail DOT com> <CAPTtexJ0hgB0y=Y8hdURfJXRVUjSfNjG7-yoDqxZgvZtAdSb8g AT mail DOT gmail DOT com>
In-Reply-To: <CAPTtexJ0hgB0y=Y8hdURfJXRVUjSfNjG7-yoDqxZgvZtAdSb8g@mail.gmail.com>
From: Chris Marshall <devel DOT chm DOT 01 AT gmail DOT com>
Date: Sun, 14 Oct 2018 11:26:37 -0700
Message-ID: <CAPTtex+BvaG2bfV7_hqX6jHuSAvg02Ek8gpOdKZgMuKWO_Cb5w@mail.gmail.com>
Subject: Re: opengl render size too small in X11 window
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

One other issue: with the -nowgl version the window activation transfers to
the visualization window while with the -wgl version running then the
activation doesn't change to the new graphics window.  In fact, clicking on
the window doesn't help.  If you click on the desktop background or another
window, then clicking on the graphics window will select and activate
correctly.

--Chris


On Sun, Oct 14, 2018 at 11:21 AM Chris Marshall <devel DOT chm DOT 01 AT gmail DOT com>
wrote:

> The initial render of the OpenGL content now fills the xwindow area but if
> you resize the window making it larger then the opengl content is scaled up
> by more than needed and the result is the xwindow area ends up with the
> bottom left corner of the expected viewing area.
>
> If, on the other hand, you resize smaller than the opengl rendered area
> shrinks faster than the amount appropriate for the change in size with the
> result that the content is completely visible in the bottom left corner off
> the xwindow area with blank regions to above and on the right to fill our
> the xwindow area.
>
> I can take screen shots that illustrate the problem but I don't have a way
> to get them to you.
>
> --Chris
>
>
> On Sun, Oct 14, 2018 at 11:01 AM Chris Marshall <devel DOT chm DOT 01 AT gmail DOT com>
> wrote:
>
>> Will do.
>>
>> On Sun, Oct 14, 2018 at 10:13 AM Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
>> wrote:
>>
>>> On 11/10/2018 18:40, Chris Marshall wrote:
>>> > I've verified that if I use the -nowgl option for the X11 server then
>>> the
>>> > opengl visualization is correctly rendered and sized for the containing
>>> > window.
>>> >
>>> > On Wed, Oct 10, 2018 at 12:15 PM Chris Marshall
>>> > wrote:
>>> >
>>> >> Dear Cygwin-
>>> >>
>>> >> Using cygwin X11 under windows 10 with a high dpi display (3840x2160)
>>> >> laptop resulted in far too small font and widgets using -multiwindow
>>> for
>>> >> the XWin option.  If I set the windows setting display resolution to
>>> >> 1920x1080 and following the suggestion for the ~/.Xresources file from
>>> >>
>>> https://stackoverflow.com/questions/42211564/cygwin-xwin-scaling-broken-when-using-windows-scaling-on-high-resolution-displa
>>> >> I was able keep windows, widgets, and title/menu bars at a reasonable
>>> size
>>> >> for reading.
>>> >>
>>> >> However, when I display some OpenGL graphics content (using a FreeGLUT
>>> >> window), then the visible OpenGL rendered area is about 2/3 the
>>> apparent
>>> >> widget area of the X11 window.  If I try the same in a
>>> non-multiwindow Xwin
>>> >> session then the rendered area is correct.  This problem is even
>>> worse if I
>>> >> try with the full screen resolution.  At the moment I think I have
>>> narrowed
>>> >> it down to the -multiwindow support for OpenGL contexts.
>>> >>
>>> >> This is with a couple of versions of the freeglut libraries with no
>>> effect
>>> >> and the current cygwin and cygwin X Server.
>>>
>>> Interesting.  Thanks for reporting this issue.
>>>
>>> I suspect this might be caused by:
>>>
>>> - the X server is marked as high-dpi aware (via manifest)
>>> - when using WGL, OpenGL drawing takes place in the client (to a window
>>> handle retrieved from the X server)
>>> - the GL client you are using is not marked as high-dpi aware (the
>>> default)
>>>
>>> (-wgl is only currently supported in multiwindow mode)
>>>
>>> If that's the case, I think I see what is needed to fix this, but this
>>> is not possible for me to test.
>>>
>>> I've built an updated libGL1 with this potential fix, perhaps you can
>>> try it, to see if it improves things. Install it with:
>>>
>>> wget ftp://cygwin.com/pub/cygwinx/x86_64/libGL1-18.0.5-1.1.tar.xz
>>> tar -C / -xvf libGL1-18.0.5-1.1.tar.xz
>>>
>>> (This is built for x86_64. If you need x86 instead, please ask)
>>>
>>> Reinstall the libGL1 using cygwin setup to get things back to their
>>> previous state.
>>>
>>> --
>>> Jon Turney
>>> Volunteer Cygwin/X X Server maintainer
>>>
>>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019