X-Recipient: archive-cygwin@delorie.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=aspyaCN
	+mKZsTPM7BWYGER8A7Naz/aFMAVPvt8bbiu6FRisQGkCxQg0OP744+9gAjXlGwt/
	USZKxOzgMDGPeyrCQYMDXwNYmYzEUsCzgbCihXUOwmjqfS1oPzz1/DZl7GgHYSSo
	855YUQ/+14VXna7f3yNvgg0Mx/pu/h/9S89Q=
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=ed2oFC/XhdKfb
	ieWUsjL+pqPAsE=; b=qolrk9RCwvLa2g0MAOcKxG4DXIkFuqz5YaMOlnFlhxoPE
	3wkZaqvbwMhTBNkEbQ97qW9S7rk4pry6iZfSKH1K51a5mLME7UYV5gyXki9Ql4zV
	vcTxfkAVFjOiyxn7d+ffQfPRTfIjQ0QKBM4VFPoluODC9Boqdd2yk+hfl1AUBU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.8 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, opengl, graphics
X-HELO: mail-yb1-f171.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=2RMThh/KNAGyL1HMdvgondBbSK53soKRCz7+5cKypUY=;        b=IZEHZOGSTJmjS5iu/Lp0Aljfwyr/QbHUeAxsQL7gBSlzKmSJiu3GMlV8sdpKCcXZYg         H/dq9ydReHagSqkSpyz5jlNpH9/aEIcdYr8Zevf3GYjcLjemklN6NOqbiP/DL0g5uJGU         4/Iwdr24bOPvYdSm82jrtqyQDHL8Gi3HCy+3Z0QjEFs29XNVvMJOHLBCqCCKWnodhg+C         2RFYeyfPIzBaQEis2B5ZzE/bpB43cCAx+Ac/Qt3/P2spSV7dggY/PR6cS9l7YYbzBecm         8MfiBfpFRAbRdBqqHg9EgRI/UvTmf+hB3WaGiflj6eD0a11TWKCCrqJh+i31XkQbjJSk         ok1w==
MIME-Version: 1.0
References: <CAPTtex+HUf7-4+vF+dVRRhRBgPOT3H+a2B8nUGPp+Oj5FFZgxw@mail.gmail.com> <CAPTtexK1fA3caz5RpD8eUoyKQRUjh7n_HNJLfQvYrHZHvu0pBw@mail.gmail.com> <f5ec8d17-1189-8911-901e-a7c8f0c1b7dc@dronecode.org.uk>
In-Reply-To: <f5ec8d17-1189-8911-901e-a7c8f0c1b7dc@dronecode.org.uk>
From: Chris Marshall <devel.chm.01@gmail.com>
Date: Sun, 14 Oct 2018 11:01:54 -0700
Message-ID: <CAPTtexJ7oxFbnAZxdBCj23yzAFQnpuZg0qOD2XyvFjsHjwEXmg@mail.gmail.com>
Subject: Re: opengl render size too small in X11 window
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

Will do.

On Sun, Oct 14, 2018 at 10:13 AM Jon Turney <jon.turney@dronecode.org.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

