mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
Remove something that slipped through the last commit.
Don't even know why that was there.
This commit is contained in:
parent
bd284f1468
commit
9ee3a30878
@ -136,8 +136,7 @@ public class DolphinEmulator<MainActivity> extends Activity
|
|||||||
if (resultCode == Activity.RESULT_OK)
|
if (resultCode == Activity.RESULT_OK)
|
||||||
{
|
{
|
||||||
DisplayMetrics displayMetrics = new DisplayMetrics();
|
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);
|
wm.getDefaultDisplay().getMetrics(displayMetrics);
|
||||||
screenWidth = displayMetrics.widthPixels;
|
screenWidth = displayMetrics.widthPixels;
|
||||||
screenHeight = displayMetrics.heightPixels;
|
screenHeight = displayMetrics.heightPixels;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user