mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Perf: re-enable VOSF on Xcode-made, OSX-host builds
This commit is contained in:
parent
ef26204e6d
commit
4e5e3377f1
@ -1316,6 +1316,7 @@
|
||||
"$(inherited)",
|
||||
"$(LOCAL_LIBRARY_DIR)/Frameworks",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.basiliskii.BasiliskII;
|
||||
@ -1332,6 +1333,7 @@
|
||||
"$(inherited)",
|
||||
"$(LOCAL_LIBRARY_DIR)/Frameworks",
|
||||
);
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.basiliskii.BasiliskII;
|
||||
|
@ -43,6 +43,7 @@
|
||||
|
||||
/* Define if using video enabled on SEGV signals. */
|
||||
/* #undef ENABLE_VOSF */
|
||||
#define ENABLE_VOSF 1
|
||||
|
||||
/* Define if using XFree86 DGA extension. */
|
||||
/* #undef ENABLE_XF86_DGA */
|
||||
|
@ -210,9 +210,6 @@ extern void SysMountFirstFloppy(void);
|
||||
|
||||
static void *vm_acquire_framebuffer(uint32 size)
|
||||
{
|
||||
#if __MACOSX__
|
||||
return calloc(1, size);
|
||||
#else
|
||||
// always try to reallocate framebuffer at the same address
|
||||
static void *fb = VM_MAP_FAILED;
|
||||
if (fb != VM_MAP_FAILED) {
|
||||
@ -226,16 +223,11 @@ static void *vm_acquire_framebuffer(uint32 size)
|
||||
if (fb == VM_MAP_FAILED)
|
||||
fb = vm_acquire(size, VM_MAP_DEFAULT | VM_MAP_32BIT);
|
||||
return fb;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void vm_release_framebuffer(void *fb, uint32 size)
|
||||
{
|
||||
#if __MACOSX__
|
||||
free(fb);
|
||||
#else
|
||||
vm_release(fb, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int get_customized_color_depth(int default_depth)
|
||||
|
Loading…
Reference in New Issue
Block a user