mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-23 11:31:41 +00:00
Partial revert of "Mac app and tests build again"
This partially reverts commit 8f155b5190
.
This commit is contained in:
parent
4aa75a59c8
commit
807b441ab1
@ -229,13 +229,23 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
cpu_pause();
|
||||||
|
emulator_start();
|
||||||
|
cpu_resume();
|
||||||
|
|
||||||
// Synchronize buffer swaps with vertical refresh rate
|
// Synchronize buffer swaps with vertical refresh rate
|
||||||
GLint swapInt = 1;
|
GLint swapInt = 1;
|
||||||
[[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
|
[[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
|
||||||
|
|
||||||
cpu_pause();
|
// Init our renderer. Use 0 for the defaultFBO which is appropriate for
|
||||||
emulator_start();
|
// OSX (but not iOS since iOS apps must create their own FBO)
|
||||||
cpu_resume();
|
#if TARGET_OS_MAC
|
||||||
|
video_init();
|
||||||
|
#elif TARGET_OS_IPHONE
|
||||||
|
# error this is OSX specific
|
||||||
|
#else
|
||||||
|
# error "unknown/unsupported Apple platform
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)reshape
|
- (void)reshape
|
||||||
|
@ -418,7 +418,7 @@ void emulator_start(void) {
|
|||||||
c_keys_set_key(kF8); // show credits before emulation start
|
c_keys_set_key(kF8); // show credits before emulation start
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !TARGET_OS_PHONE && !defined(ANDROID)
|
#if !(TARGET_OS_MAC || TARGET_OS_PHONE) && !defined(ANDROID)
|
||||||
video_init();
|
video_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user