From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58431 invoked by alias); 14 Oct 2018 17:13:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 58418 invoked by uid 89); 14 Oct 2018 17:13:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=laptop, rendered, window, graphics X-HELO: rgout03.bt.lon5.cpcloud.co.uk Received: from rgout0307.bt.lon5.cpcloud.co.uk (HELO rgout03.bt.lon5.cpcloud.co.uk) (65.20.0.213) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 14 Oct 2018 17:13:27 +0000 X-OWM-Source-IP: 31.51.205.159 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-SNCR-VADESECURE: CLEAN Received: from [192.168.1.102] (31.51.205.159) by rgout03.bt.lon5.cpcloud.co.uk (9.0.019.26-1) (authenticated as jonturney@btinternet.com) id 5BB6CF6500E0FB2B; Sun, 14 Oct 2018 18:13:23 +0100 Subject: Re: opengl render size too small in X11 window To: The Cygwin Mailing List References: Cc: Chris Marshall Reply-To: The Cygwin Mailing List From: Jon Turney Message-ID: Date: Sun, 14 Oct 2018 17:13:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00113.txt.bz2 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