fixes in structs, added common cc65 color definitions, cgetc laces cursor in
correct line, interrupts are enabled before jumping into _main git-svn-id: svn://svn.cc65.org/cc65/trunk@1217 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
GEOS graphic (non icon/menu/sprite) functions
|
||||
|
||||
ported to small C on 29.10.1999
|
||||
by Maciej 'YTM/Alliance' Witkowiak
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
10,11.03.2000 - updates
|
||||
*/
|
||||
|
||||
@@ -70,6 +70,23 @@ void __fastcall__ GraphicsString(char *myGfxString);
|
||||
#define LTGREEN 13
|
||||
#define LTBLUE 14
|
||||
#define LTGREY 15
|
||||
/* once again for cc65 compatibility */
|
||||
#define COLOR_BLACK 0x00
|
||||
#define COLOR_WHITE 0x01
|
||||
#define COLOR_RED 0x02
|
||||
#define COLOR_CYAN 0x03
|
||||
#define COLOR_VIOLET 0x04
|
||||
#define COLOR_GREEN 0x05
|
||||
#define COLOR_BLUE 0x06
|
||||
#define COLOR_YELLOW 0x07
|
||||
#define COLOR_ORANGE 0x08
|
||||
#define COLOR_BROWN 0x09
|
||||
#define COLOR_LIGHTRED 0x0A
|
||||
#define COLOR_GRAY1 0x0B
|
||||
#define COLOR_GRAY2 0x0C
|
||||
#define COLOR_LIGHTGREEN 0x0D
|
||||
#define COLOR_LIGHTBLUE 0x0E
|
||||
#define COLOR_GRAY3 0x0F
|
||||
/* VIC memory banks */
|
||||
#define GRBANK0 3
|
||||
#define GRBANK1 2
|
||||
|
||||
@@ -110,7 +110,7 @@ struct icondef { /* icon definition for DoIcons */
|
||||
struct icontab {
|
||||
char number; /* number of declared icons */
|
||||
struct pixel mousepos; /* position of mouse after DoIcons */
|
||||
struct icondef tab[]; /* table of size declared by icontab.number */
|
||||
struct icondef *tab; /* table of size declared by icontab.number */
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -130,13 +130,13 @@ struct menuitem {
|
||||
struct menu {
|
||||
struct window size;
|
||||
char number;
|
||||
struct menuitem items[];
|
||||
struct menuitem *items;
|
||||
};
|
||||
|
||||
struct inittab { /* use struct inittab mytab[n] for initram */
|
||||
int ptr; /* ptr to 1st byte */
|
||||
char number; /* number of following bytes */
|
||||
char values[]; /* warning - in table size of this is same for all! */
|
||||
char *values; /* actual string of bytes */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user