-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line artefacts on Canvas at Windows 200% scaling #209
Comments
The class of interest is
If I remove
Then the lines are eliminated. |
Note the JavaDoc for
A
And that calls the constructor:
So, in this case, FigureCanvas uses both |
I got a better result by hacking into private static int checkStyle(int style) {
if((style & SWT.DOUBLE_BUFFERED) != 0 && (style & SWT.NO_BACKGROUND) != 0) {
style = style & ~SWT.NO_BACKGROUND;
}
if ((style & REQUIRED_STYLES) != REQUIRED_STYLES)
throw new IllegalArgumentException(
"Required style missing on FigureCanvas"); //$NON-NLS-1$
if ((style & ~ACCEPTED_STYLES) != 0)
throw new IllegalArgumentException(
"Invalid style being set on FigureCanvas"); //$NON-NLS-1$
return style;
} But there are still lines on the palette and on Zest nodes. |
We noticed some shadow lines in 4diac IDE on windows on resizing elements (in our case Draw2d elements inside a canvas) when the sizes of the elements where not correct or some elements where drawn outside of the sizes. Could it be an off by one or a rounding error during drawing? And by that that some clipping masks are set wrong? |
It's only happening on Windows at 200% scale. I tried to narrow it down to pure SWT but I can't reproduce it without using a |
What I noticed is that on Windows redrawing is done differently. That's the reason I mentioned it. |
This issue is stale because it has been open for 90 days with no activity. |
Windows 11 at hi-dpi scaling.
Spurious lines are drawn on a Draw2d canvas if the canvas is dragged to the edges of the monitor and dragged back again. In the following screenshot I dragged Archi to the bottom of the screen so it overlaps then dragged it back to centre of the screen again. Those horizontal lines that span the diagram and palette are the unwanted artefacts.
Snippet to reproduce:
Run the snippet and drag the window to the edges of the screen so it overlaps the screen and drag it back to the centre of the screen.
The text was updated successfully, but these errors were encountered: