mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 06:31:13 +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
|
// start emulator from paused state
|
||||||
cpu_pause();
|
cpu_pause();
|
||||||
emulator_start();
|
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();
|
video_init();
|
||||||
|
|
||||||
_animating = NO;
|
_animating = NO;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user