Added changes from Oliver Schmidt so the graphics oriented demo programs
can also be run on apple machines. Changed the makefile to account for the special start address needed for these programs. git-svn-id: svn://svn.cc65.org/cc65/trunk@3660 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -14,7 +14,11 @@
|
||||
|
||||
|
||||
/* Graphics definitions */
|
||||
#define GRAPHMODE TGI_MODE_320_200_2
|
||||
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
|
||||
# define GRAPHMODE TGI_MODE_280_192_6
|
||||
#else
|
||||
# define GRAPHMODE TGI_MODE_320_200_2
|
||||
#endif
|
||||
#define SCREEN_X (tgi_getmaxx()+1)
|
||||
#define SCREEN_Y (tgi_getmaxy()+1)
|
||||
#define MAXCOL (tgi_getmaxcolor()+1)
|
||||
@@ -28,6 +32,12 @@
|
||||
#define mulfp(_a,_b) ((((signed long)_a)*(_b))>>fpshift)
|
||||
#define divfp(_a,_b) ((((signed long)_a)<<fpshift)/(_b))
|
||||
|
||||
/* Workaround missing clock stuff */
|
||||
#if defined(__APPLE2__) || defined(__APPLE2ENH__)
|
||||
# define clock() 0
|
||||
# define CLK_TCK 1
|
||||
#endif
|
||||
|
||||
/* Use static local variables for speed */
|
||||
#pragma staticlocals (1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user