| Summary: | SWT should be able to scale images to match resolution and dpi of display | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | David Williams <david_williams> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | eclipse, ericwill, lorenzo.bettini, markus.kell.r, stanio |
| Version: | 4.4 | Keywords: | triaged |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 110035 | ||
|
Description
David Williams
Not sure if this should be a separate bug or just a dup of bug 382972. SWT should not try to implement resolution-independent images itself, but it should reuse / offer APIs for what's already offered by the operating systems / native windowing toolkits. (In reply to Markus Keller from comment #1) > SWT should not try to implement resolution-independent images itself, but it > should reuse / offer APIs for what's already offered by the operating > systems / native windowing toolkits. As always, Markus says it well. FWIW, I've learned (from "experience") that Windows is rescaling based on what's in the ICO file ... SWT is rescaling based on what's in the "windowsImages" list ... does that sound right? While typically these are the same, a mistake in Saturday afternoon's build made this apparent ... where images in ICO file were changed, the images making up "windowsImages" were not, just as an oversite. I'm assuming it's still SWT that has "whole list" and picks which one to scale. Is that that a correct assumption? Or does the UI layer do that? If SWT does have "whole list", does order matter? I know in ICO file the images are indexed in order of 48 being first, then 32, then 16 ... But in "windowsImages" list, they are ordered as "16, 32, 48". Just providing more data, in case it helps. Thanks. This has been addressed in the HiDPI port(s). |