From 9ee3a30878b5bf0310ab4e483cde03293faf1763 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 24 Apr 2013 09:55:12 -0400 Subject: [PATCH] Remove something that slipped through the last commit. Don't even know why that was there. --- .../Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java b/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java index 79d1bd44f2..db647723ad 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/DolphinEmulator.java @@ -136,8 +136,7 @@ public class DolphinEmulator extends Activity if (resultCode == Activity.RESULT_OK) { DisplayMetrics displayMetrics = new DisplayMetrics(); - getApplicationContext(); - WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); // the results will be higher than using the activity context object or the getWindowManager() shortcut + WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); // the results will be higher than using the activity context object or the getWindowManager() shortcut wm.getDefaultDisplay().getMetrics(displayMetrics); screenWidth = displayMetrics.widthPixels; screenHeight = displayMetrics.heightPixels;