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
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?
Previous Topic:adding wizardPages dynamically
Next Topic:CCombo Flicker while switching between workbench parts
Goto Forum:
  


Current Time: Sat Dec 16 09:21:29 GMT 2017

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

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