mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-22 20:30:22 +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
|
||||
|
||||
// Synchronize buffer swaps with vertical refresh rate
|
||||
GLint swapInt = 1;
|
||||
[[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
|
||||
|
||||
cpu_pause();
|
||||
emulator_start();
|
||||
cpu_resume();
|
||||
|
||||
// Synchronize buffer swaps with vertical refresh rate
|
||||
GLint swapInt = 1;
|
||||
[[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval];
|
||||
|
||||
// Init our renderer. Use 0 for the defaultFBO which is appropriate for
|
||||
// OSX (but not iOS since iOS apps must create their own FBO)
|
||||
#if TARGET_OS_MAC
|
||||
video_init();
|
||||
#elif TARGET_OS_IPHONE
|
||||
# error this is OSX specific
|
||||
#else
|
||||
# error "unknown/unsupported Apple platform
|
||||
#endif
|
||||
}
|
||||
|
||||
- (void)reshape
|
||||
|
@ -418,7 +418,7 @@ void emulator_start(void) {
|
||||
c_keys_set_key(kF8); // show credits before emulation start
|
||||
#endif
|
||||
|
||||
#if !TARGET_OS_PHONE && !defined(ANDROID)
|
||||
#if !(TARGET_OS_MAC || TARGET_OS_PHONE) && !defined(ANDROID)
|
||||
video_init();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user