diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 21:39:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 21:39:35 +0000 |
| commit | 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (patch) | |
| tree | c6e220ba61db3a6ea4052e6841296d829654e664 /os/js/screen.h | |
| parent | 46439007cf417cbd9ac8049bb4122c890097a0fa (diff) | |
20060303
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 */ +}; + |
