version 1.11 | | version 1.12 |
---|
| | |
* Definitions for graphics lib. | | * Definitions for graphics lib. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.12 1999/11/21 13:00:09 donut |
| | * Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values. |
| | * |
* Revision 1.11 1999/11/20 10:05:16 donut | | * Revision 1.11 1999/11/20 10:05:16 donut |
* variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). | | * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). |
* | | * |
| | |
| | |
typedef struct _grs_screen { // This is a video screen | | typedef struct _grs_screen { // This is a video screen |
grs_canvas sc_canvas; // Represents the entire screen | | grs_canvas sc_canvas; // Represents the entire screen |
short sc_mode; // Video mode number | | u_int32_t sc_mode; // Video mode number |
short sc_w, sc_h; // Actual Width and Height | | short sc_w, sc_h; // Actual Width and Height |
fix sc_aspect; //aspect ratio (w/h) for this screen | | fix sc_aspect; //aspect ratio (w/h) for this screen |
} grs_screen; | | } grs_screen; |
| | |
// 17 640 480 15 V 1.0 1.0 | | // 17 640 480 15 V 1.0 1.0 |
// 18 800 600 15 V 1.0 1.0 | | // 18 800 600 15 V 1.0 1.0 |
| | |
#define SM_ORIGINAL -1 | | //new more versatile res setting method. added 11/21/99 Matt Mueller. |
| | #define SM(w,h) ((((u_int32_t)w)<<16)+(((u_int32_t)h)&0xFFFF)) |
| | #define SM_W(m) (m>>16) |
| | #define SM_H(m) (m&0xFFFF) |
| | #define SM_ORIGINAL 0 |
| | /*#define SM_ORIGINAL -1 |
#define SM_320x200C 0 | | #define SM_320x200C 0 |
#define SM_320x200U 1 | | #define SM_320x200U 1 |
#define SM_320x240U 2 | | #define SM_320x240U 2 |
| | |
| | |
#define SM_320x200x8 1 | | #define SM_320x200x8 1 |
#define SM_320x200x8UL 2 | | #define SM_320x200x8UL 2 |
#define SM_320x200x16 3 | | #define SM_320x200x16 3*/ |
| | |
#define BM_LINEAR 0 | | #define BM_LINEAR 0 |
#ifdef D1XD3D | | #ifdef D1XD3D |
| | |
// 10=Error allocating selector for A0000h | | // 10=Error allocating selector for A0000h |
// 11=Not a valid mode support by gr.lib | | // 11=Not a valid mode support by gr.lib |
// Returns one of the above without setting mode | | // Returns one of the above without setting mode |
int gr_check_mode(int mode); | | int gr_check_mode(u_int32_t mode); |
int gr_set_mode(int mode); | | int gr_set_mode(u_int32_t mode); |
| | |
| | |
//========================================================================= | | //========================================================================= |