mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-22 20:30:22 +00:00
Ensure we use the correct device bounds
This commit is contained in:
parent
2560a45e37
commit
3b6b568fc2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user