mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-12 06:29:58 +00:00
Misc tweaks to get OS X target building
This commit is contained in:
parent
ed8b41c9a0
commit
a9d094c112
@ -1066,12 +1066,14 @@ void show_disk_info() {
|
|||||||
clear_debugger_screen () - clears the screen of graphics artifacts.
|
clear_debugger_screen () - clears the screen of graphics artifacts.
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
void clear_debugger_screen() {
|
void clear_debugger_screen() {
|
||||||
|
#ifdef INTERFACE_CLASSIC
|
||||||
int i;
|
int i;
|
||||||
video_setpage( 0 );
|
video_setpage( 0 );
|
||||||
for (i = 0; i < 24; i++)
|
for (i = 0; i < 24; i++)
|
||||||
{
|
{
|
||||||
c_interface_print(0, i, 2, screen[ i ] );
|
c_interface_print(0, i, 2, screen[ i ] );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------
|
/* -------------------------------------------------------------------------
|
||||||
|
@ -623,7 +623,7 @@ void c_initialize_firsttime()
|
|||||||
reinitialize();
|
reinitialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(TESTING)
|
#if !defined(TESTING) && !defined(__APPLE__)
|
||||||
static void main_thread(void *dummyptr) {
|
static void main_thread(void *dummyptr) {
|
||||||
struct timespec sleeptime = { .tv_sec=0, .tv_nsec=8333333 }; // 120Hz
|
struct timespec sleeptime = { .tv_sec=0, .tv_nsec=8333333 }; // 120Hz
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#include "darwin-shim.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define EXECUTION_PERIOD_NSECS 1000000 // AppleWin: nExecutionPeriodUsec
|
#define EXECUTION_PERIOD_NSECS 1000000 // AppleWin: nExecutionPeriodUsec
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user