Community
Participate
Working Groups
Build Identifier: I20110915-1308 The line rendering, after calling GC.setLineWidth(0) to use the fastest possible line drawing algorithm, changed in SWT 3.8M2, the line is now thicker than before, as if the line width was set to 1. Looks like the fastest algorithm is ignored. The "squiggle" underline in the text editor has the same effect: thin in Eclipse 3.7.1, thick in Eclipse 3.8M2. Reproducible: Always
Arun, can you try this out ?
This is probably happening because cairo graphics is always on when the gtk version is greater than 2.18.
I don't understand, should it be considered a new feature ? The issue is on the same OS version (Fedora 14) so something changed from SWT 3.7.1 to 3.8M2. Calling GC.setAdvanced true or false doesn't seems to have any effect (never used it before so maybe it is just me), are there other settings to change to have the lines display as before ?
Found the workaround: set the system property org.eclipse.swt.internal.gtk.useCairo=false, this disables cairo and makes all drawings look correct (or at least same as release 3.7.1). Still don't understand what setAdvanced should do, with false it should disable cairo but if cairo is enabled it won't disable it, it just sets some parameters (lines 2955-2967, GC.java). Looks like a bug to me but I don't fully understand what these calls means so I'm not sure.
I don't believe disabling cairo is the right answer. GTK (and SWT) are moving to world where cairo is always enabled. As a matter of fact, in GTK 3 everything is draw using cairo. We should fix the real cause of the problem, lineWidth==0.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.