| Summary: | [HiDPI][Cocoa] GC.copyArea() copies only low resolution image even if high resolution display is used | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tim Mueller <legendaerer> | ||||||
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Arun Thondapu <arunkumar.thondapu> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | arunkumar.thondapu, cyzhdl, ericwill, lshanmug, niraj.modi, peter, sravankumarl | ||||||
| Version: | 4.5.2 | Flags: | arunkumar.thondapu:
review+
|
||||||
| Target Milestone: | 4.6.1 | ||||||||
| Hardware: | Macintosh | ||||||||
| OS: | Mac OS X | ||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=497947 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 495269 | ||||||||
| Attachments: |
|
||||||||
|
Description
Tim Mueller
Tried this with Eclipse 4.6M6. Snippet 215 creates a low resolution image. But, Snippet 95 creates a high res image. Will investigate this for 4.6.1. (In reply to Tim Mueller from comment #0) > I cannot tell how this call behaves on Windows HiDPI displays, but this case > should also be considered. > Niraj/Sravan can you try this on Windows/GTK with HiDPI displays? Created attachment 261426 [details] Win7: Output of Snippet215_Snippet95 at 150%_Zoom (In reply to Lakshmi Shanmugam from comment #2) > (In reply to Tim Mueller from comment #0) > > I cannot tell how this call behaves on Windows HiDPI displays, but this case > > should also be considered. > > > Niraj/Sravan can you try this on Windows/GTK with HiDPI displays? Windows GC.copyArea() is already adapted for HighDPI use during M6 timeframe. On Windows output of both Snippet95 & Snippet215 looks fine at 150% zoom, refer attachment. Created attachment 262433 [details] patch The patch adds a high resolution representation for the image when on retina/high res display. Removed version checks and code for older OSX versions. The patch has to be tested on a non-retina Mac. Also, the code to adding high resolution representation in copyArea() can be removed if this code is directly added in the Image constructor (as part of Bug 489451). Pushed changes to master > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9f1686cd5fbf015a2c6d70406a01b2a5e3d52149 (In reply to Lakshmi Shanmugam from comment #5) > Pushed changes to master > > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=9f1686cd5fbf015a2c6d70406a01b2a5e3d52149 Backported to 4.6.1 via http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?h=R4_6_maintenance&id=c78bd6efd551a0180463bab688cf818be6614cdd Verified in 4.6.1.M20160824-0059. *** Bug 392307 has been marked as a duplicate of this bug. *** |