Loading services/java/com/android/server/wm/WindowManagerService.java +8 −3 Original line number Diff line number Diff line Loading @@ -4886,8 +4886,13 @@ public class WindowManagerService extends IWindowManager.Stub int fw = frame.width(); int fh = frame.height(); // First try reducing to fit in x dimension. scale = width/(float)fw; // Constrain thumbnail to smaller of screen width or height. Assumes aspect // of thumbnail is the same as the screen (in landscape) or square. if (dw <= dh) { scale = width / (float) fw; // portrait } else { scale = height / (float) fh; // landscape } // The screen shot will contain the entire screen. dw = (int)(dw*scale); Loading Loading
services/java/com/android/server/wm/WindowManagerService.java +8 −3 Original line number Diff line number Diff line Loading @@ -4886,8 +4886,13 @@ public class WindowManagerService extends IWindowManager.Stub int fw = frame.width(); int fh = frame.height(); // First try reducing to fit in x dimension. scale = width/(float)fw; // Constrain thumbnail to smaller of screen width or height. Assumes aspect // of thumbnail is the same as the screen (in landscape) or square. if (dw <= dh) { scale = width / (float) fw; // portrait } else { scale = height / (float) fh; // landscape } // The screen shot will contain the entire screen. dw = (int)(dw*scale); Loading