Ensure we use the correct device bounds

This commit is contained in:
Aaron Culliney 2016-06-26 17:17:28 -07:00
parent 2560a45e37
commit 3b6b568fc2

View File

@ -84,6 +84,12 @@
// start emulator from paused state
cpu_pause();
emulator_start();
// set up defaults
CGRect screenBounds = [[UIScreen mainScreen] bounds];
prefs_setLongValue(PREF_DOMAIN_INTERFACE, PREF_DEVICE_WIDTH, (long)screenBounds.size.width);
prefs_setLongValue(PREF_DOMAIN_INTERFACE, PREF_DEVICE_HEIGHT, (long)screenBounds.size.height);
video_init();
_animating = NO;