fixed stuff according to Olivers review

This commit is contained in:
mrdudz
2015-11-30 18:44:04 +01:00
parent 3bc1375c90
commit 7496e669be
2 changed files with 22 additions and 20 deletions

View File

@@ -158,25 +158,25 @@
#define COLOR_BLACK 0x03 #define COLOR_BLACK 0x03
#define COLOR_WHITE 0x00 #define COLOR_WHITE 0x00
#define CH_HLINE 1 #define CH_HLINE 1
#define CH_VLINE 2 #define CH_VLINE 2
#define CH_CROSS 3 #define CH_CROSS 3
#define CH_ULCORNER 4 #define CH_ULCORNER 4
#define CH_URCORNER 5 #define CH_URCORNER 5
#define CH_LLCORNER 6 #define CH_LLCORNER 6
#define CH_LRCORNER 7 #define CH_LRCORNER 7
#define CH_TTEE 8 #define CH_TTEE 8
#define CH_BTEE 9 #define CH_BTEE 9
#define CH_RTEE 11 #define CH_RTEE 11
#define CH_LTEE 12 #define CH_LTEE 12
#define CH_ENTER 13 #define CH_ENTER 13
#define CH_PI 18 #define CH_PI 18
#define TV_NTSC 0 #define TV_NTSC 0
#define TV_PAL 1 #define TV_PAL 1
#define TV_OTHER 2 #define TV_OTHER 2
/* No support for dynamically loadable drivers */ /* No support for dynamically loadable drivers */
#define DYN_DRV 0 #define DYN_DRV 0
@@ -184,15 +184,15 @@
/* The addresses of the static drivers */ /* The addresses of the static drivers */
extern void gamate_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */ extern void gamate_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
#define JOY_FIRE_B 5 #define JOY_FIRE_B 5
#define JOY_START 6 #define JOY_START 6
#define JOY_SELECT 7 #define JOY_SELECT 7
void waitvblank (void); void waitvblank (void);
/* Wait for the vertical blanking */ /* Wait for the vertical blanking */
/* NOTE: all Gamate are "NTSC" */ /* NOTE: all Gamate are "NTSC" */
#define get_tv() TV_NTSC #define get_tv() TV_NTSC
/* Return the video mode the machine is using. */ /* Return the video mode the machine is using. */
/* End of gamate.h */ /* End of gamate.h */

View File

@@ -15,6 +15,7 @@
#include <stdlib.h> #include <stdlib.h>
#if defined(__GAMATE__) #if defined(__GAMATE__)
/* there is not enough screen space to show all 256 characters at the bottom */
#define NUMCHARS 128 #define NUMCHARS 128
#define NUMCOLS 4 #define NUMCOLS 4
#else #else
@@ -132,6 +133,7 @@ void main(void)
inpos = (inpos + 1) & 7; inpos = (inpos + 1) & 7;
} }
#endif #endif
/* not all targets have waitvblank() */
#if defined(__NES__) || defined(__PCE__) || defined(__GAMATE__) #if defined(__NES__) || defined(__PCE__) || defined(__GAMATE__)
waitvblank(); waitvblank();
#endif #endif