Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345650 - FillGradientRectangle results in screen cheese on x86_64
Summary: FillGradientRectangle results in screen cheese on x86_64
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.7 RC3   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 15:42 EDT by Bogdan Gheorghe CLA
Modified: 2011-05-26 13:48 EDT (History)
5 users (show)

See Also:
carolynmacleod4: review+
grant_gayed: review+
Silenio_Quarti: review+


Attachments
Snippet (1.01 KB, application/octet-stream)
2011-05-12 17:07 EDT, Bogdan Gheorghe CLA
no flags Details
Pic (16.40 KB, image/png)
2011-05-12 17:08 EDT, Bogdan Gheorghe CLA
no flags Details
Proposed Patch (1.92 KB, patch)
2011-05-24 15:40 EDT, Bogdan Gheorghe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.