Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 267466 - [SWT_AWT] Browser.print(GC) should not use AWT component ancestor clip
Summary: [SWT_AWT] Browser.print(GC) should not use AWT component ancestor clip
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 18:31 EST by Christopher Deckers CLA
Modified: 2009-04-30 21:43 EDT (History)
1 user (show)

See Also:


Attachments
Browser in AWT where clip does not work. (3.37 KB, text/x-java)
2009-03-06 18:31 EST, Christopher Deckers CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Deckers CLA 2009-03-06 18:31:46 EST
Created attachment 127883 [details]
Browser in AWT where clip does not work.

Build ID: SWT-N20090305-2000

Steps To Reproduce:
1. have an AWT component with a clipped region (using JNA for example)
2. browser.print(gc)
3. The hidden areas are rendered black


More information:
If fixPrintWindow is artificially forced to true in Control.printWidget(int, int, GC), then it prints correctly.

Attached is a sample that shows the issue: after 5 seconds a screenshot is taken on a clipped area containing a browser.
You need the JNA JAR file and the JNA examples JAR file, which can be found here:
- https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.7/jnalib/dist/jna.jar?rev=HEAD
- https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.7/jnalib/dist/examples.jar?rev=HEAD
Comment 1 Silenio Quarti CLA 2009-03-16 11:01:10 EDT
Fixed > 20090316