Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345650

Summary: FillGradientRectangle results in screen cheese on x86_64
Product: [Eclipse Project] Platform Reporter: Bogdan Gheorghe <gheorghe>
Component: SWTAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: niels, overholt, pwebster, remy.suen, Silenio_Quarti
Version: 3.7Flags: carolynmacleod4: review+
grant_gayed: review+
Silenio_Quarti: review+
Target Milestone: 3.7 RC3   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Snippet
none
Pic
none
Proposed Patch none

Description Bogdan Gheorghe CLA 2011-05-12 15:42:08 EDT
On GTK > 2.18 with certain versions of X (seen on 1.10.1 and 1.9.5 to date), calling fillGradientRectangle will result in screen cheese.
Comment 1 Bogdan Gheorghe CLA 2011-05-12 17:07:47 EDT
Created attachment 195548 [details]
Snippet

Here is a snippet that draws 2 rectangles - one red one, and then a gradient one on top of the red one. The red rectangle should be one pixel larger than the gradient one and there is a loop that increments the size by one for each line. 

You will see that for some sizes some black is drawn at the end of the gradient rectangle.
Comment 2 Bogdan Gheorghe CLA 2011-05-12 17:08:07 EDT
Created attachment 195549 [details]
Pic
Comment 3 Bogdan Gheorghe CLA 2011-05-19 11:10:24 EDT
Moving to RC3.
Comment 4 Bogdan Gheorghe CLA 2011-05-24 15:40:35 EDT
Created attachment 196482 [details]
Proposed Patch

Patch that adds property to turn Cairo on for all GCs
Comment 5 Bogdan Gheorghe CLA 2011-05-24 17:09:06 EDT
Fixed in HEAD > 20110524
Comment 6 Paul Webster CLA 2011-05-26 11:55:37 EDT
I don't see the black lines at the end of stacks any more with I20110526-0630

PW
Comment 7 Andrew Overholt CLA 2011-05-26 13:48:03 EDT
FWIW I don't see the black lines at the end of the stacks with a 3.6 SWT or with a 3.7RC1 SWT.  I'm on gtk2-2.24.4-1.fc15.x86_64.