diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-02-25 17:33:02 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-02-28 11:23:18 -0800 |
commit | 99aac7beca18b6d73e40db5e8e49f52f94be638e (patch) | |
tree | 86af865bb91bd3cacaa3360c85247d3272685f69 /services/java | |
parent | 12511f64a05733d15d1a80a884b7b4711e7dd3b1 (diff) | |
download | frameworks_base-99aac7beca18b6d73e40db5e8e49f52f94be638e.zip frameworks_base-99aac7beca18b6d73e40db5e8e49f52f94be638e.tar.gz frameworks_base-99aac7beca18b6d73e40db5e8e49f52f94be638e.tar.bz2 |
You can now specify a custom display size as NxM.
Change-Id: Ieb6df51aab009689f0f19b8887025261c5ceb69f
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index b7cc324..e3218c8 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -5812,8 +5812,7 @@ public class WindowManagerService extends IWindowManager.Stub mDisplay = wm.getDefaultDisplay(); mInitialDisplayWidth = mDisplay.getWidth(); mInitialDisplayHeight = mDisplay.getHeight(); - mInputManager.setDisplaySize(0, Display.unmapDisplaySize(mInitialDisplayWidth), - Display.unmapDisplaySize(mInitialDisplayHeight)); + mInputManager.setDisplaySize(0, mDisplay.getRealWidth(), mDisplay.getRealHeight()); } try { |