diff options
Diffstat (limited to 'os/js/screen.h')
| -rw-r--r-- | os/js/screen.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/os/js/screen.h b/os/js/screen.h new file mode 100644 index 00000000..158ba592 --- /dev/null +++ b/os/js/screen.h @@ -0,0 +1,49 @@ +typedef struct Cursor Cursor; +typedef struct Vctlr Vctlr; +typedef struct Video Video; +typedef struct Thc Thc; + +#define FSVSLOT 2 /* MrCoffee Hard Coded FB Location */ + +struct Cursor +{ + Point offset; + uchar clr[2*16]; + uchar set[2*16]; +}; + +struct Vctlr { + char* name; + Vctlr* (*init)(Vctlr*, int, int, int); + void (*page)(int); + int (*setcolor)(ulong, ulong, ulong, ulong); + + void (*enable)(void); + void (*disable)(void); + void (*move)(int, int); + void (*load)(Cursor*); + int (*isloaded)(void); + int (*cursorintersectsoff)(Rectangle*); + + int x; + int y; + int d; + + Vctlr* link; + + int hidecount; + int loaded; + Cursor cursor; + Lock l; +}; + + +struct Video +{ + /* Brooktree 458/451 */ + ulong addr; /* address register */ + ulong color; /* color palette */ + ulong cntrl; /* control register */ + ulong ovrl; /* overlay palette */ +}; + |
