am 8075fe48: am 78470718: Fix various places that were using the wrong display metrics.

* commit '8075fe48bf345e4014de9b7bee8def5f4373457c':
  Fix various places that were using the wrong display metrics.
This commit is contained in:
Dianne Hackborn
2011-05-27 17:16:19 -07:00
committed by Android Git Automerger
3 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ class ScreenRotationAnimation {
mContext = context;
mDisplay = display;
display.getMetrics(mDisplayMetrics);
display.getRealMetrics(mDisplayMetrics);
Bitmap screenshot = Surface.screenshot(0, 0);
@@ -244,7 +244,7 @@ class ScreenRotationAnimation {
break;
}
mDisplay.getMetrics(mDisplayMetrics);
mDisplay.getRealMetrics(mDisplayMetrics);
// Initialize the animations. This is a hack, redefining what "parent"
// means to allow supplying the last and next size. In this definition

View File

@@ -39,7 +39,7 @@ class StrictModeFlash {
public StrictModeFlash(Display display, SurfaceSession session) {
final DisplayMetrics dm = new DisplayMetrics();
display.getMetrics(dm);
display.getRealMetrics(dm);
try {
mSurface = new Surface(session, 0, "StrictModeFlash", -1, 1, 1, PixelFormat.TRANSLUCENT, 0);

View File

@@ -52,7 +52,7 @@ class Watermark {
Watermark(Display display, SurfaceSession session, String[] tokens) {
final DisplayMetrics dm = new DisplayMetrics();
display.getMetrics(dm);
display.getRealMetrics(dm);
if (false) {
Log.i(WindowManagerService.TAG, "*********************** WATERMARK");