Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 307944 - Display#getDepth is missing
Summary: Display#getDepth is missing
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.3 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 19:12 EDT by Benjamin Muskalla CLA
Modified: 2010-04-08 16:09 EDT (History)
0 users

See Also:


Attachments
fix (3.38 KB, patch)
2010-04-08 05:25 EDT, Tim Buschtoens CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2010-04-01 19:12:03 EDT
Display#getDepth is currently missing.

/**
 * Returns the bit depth of the screen, which is the number of
 * bits it takes to represent the number of unique colors that
 * the screen is currently capable of displaying. This number 
 * will typically be one of 1, 8, 15, 16, 24 or 32.
 *
 * @return the depth of the screen
 *
 * @exception SWTException <ul>
 *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
 * </ul>
 */
public int getDepth ()
Comment 1 Tim Buschtoens CLA 2010-04-08 05:25:23 EDT
Created attachment 164185 [details]
fix

Implementation analog to getDPI. Server and client tests still green.
Comment 2 Rüdiger Herrmann CLA 2010-04-08 16:07:45 EDT
Applied patch to CVS HEAD
Comment 3 Rüdiger Herrmann CLA 2010-04-08 16:09:49 EDT
Applied patch to CVS HEAD