Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width = 0(In a HiDPI environment On a Windows 10 machine with scaling enabled I cannot hit singles pixels drawing directly with the gc when the line width is set to 0.)
Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width = 0 [message #1772209] Wed, 06 September 2017 17:26 Go to next message
Lothar Lattermann is currently offline Lothar LattermannFriend
Messages: 26
Registered: July 2016
Junior Member
In a HiDPI environment On a Windows 10 machine with scaling enabled I cannot hit singles pixels drawing directly with the GC when the line width is set to 0. Windows will default to a scaling of 200% in a 4k setup by default.

As a result rectangles cannot be painted directly next to other. When drawing lines there will always be a an empty line in between. Painting dots/pixels directly next to each other is not possible

Are we doing something wrong or missing something? Is this a known issue? We would expect to still be able to paint on each pixel. This also means that code is not portable between system with and without scaling.


Furthermore when drawing rounded rectangles or paths directly with the GC the results differ depending if scaling is enabled or not.


We made images trying to illustrate the issue. Attached is also the code we used to create the dummy application.


Has anybody had the same problem? Is there a workaround?
Re: Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width [message #1788989 is a reply to message #1772209] Wed, 30 May 2018 21:52 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 421
Registered: July 2009
Senior Member

Yes, I see problems with drawing on HiDPI as well. Did you ever file a bug for this?
Re: Cannot hit singles pixels drawing with GC in HiDPI/Windows 10 env/scaling enabled and line width [message #1789016 is a reply to message #1772209] Wed, 30 May 2018 22:03 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 421
Registered: July 2009
Senior Member

Yes, I see problems with drawing on HiDPI as well. Did you ever file a bug for this?
Previous Topic:Sashform drag does not work due to effect of textsize recalculation
Next Topic:delete...
Goto Forum:
  


Current Time: Mon Jul 16 10:55:45 GMT 2018

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top