diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-10-02 21:59:09 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-10-02 21:59:09 -0400 |
| commit | c517b7fe7e8136c410ea79c230c5c98002353391 (patch) | |
| tree | 9a52fc59ee7d37312f8789dfbd932c95e6854c3c /Source/Android/src | |
| parent | cb3afe8f702195e5435744a19f153717101356f1 (diff) | |
[Android] Simplify call for getting the WindowManager instance within EmulationActivity.
Diffstat (limited to 'Source/Android/src')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java index 50674666ff..74306f278b 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/EmulationActivity.java @@ -45,7 +45,7 @@ public final class EmulationActivity extends Activity // Retrieve screen dimensions. DisplayMetrics displayMetrics = new DisplayMetrics(); - 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 = getWindowManager(); wm.getDefaultDisplay().getMetrics(displayMetrics); this.screenHeight = displayMetrics.heightPixels; this.screenWidth = displayMetrics.widthPixels; |
