2019-12-01 18:53:54 -07:00
|
|
|
#ifndef __FBINIT_H_INCLUDED
|
|
|
|
#define __FBINIT_H_INCLUDED
|
|
|
|
|
2019-12-05 18:21:37 -07:00
|
|
|
#include "wintype.h"
|
2019-12-01 19:39:14 -07:00
|
|
|
|
2019-12-07 13:07:59 -07:00
|
|
|
/* info about the frame buffer */
|
2019-12-01 19:39:14 -07:00
|
|
|
typedef struct tagFBINFO {
|
2019-12-07 13:07:59 -07:00
|
|
|
UINT32 width; /* screen width */
|
|
|
|
UINT32 height; /* screen height */
|
|
|
|
UINT32 virtual_width; /* virtual screen width */
|
|
|
|
UINT32 virtual_height; /* virtual screen height */
|
|
|
|
UINT32 bpp; /* bits per pixel (16) */
|
|
|
|
UINT32 linebytes; /* number of bytes per line */
|
|
|
|
UINT32 screenbytes; /* number of bytes for the entire screen */
|
|
|
|
UINT16 red_offset; /* offset of "red" bits within pixel word (11) */
|
|
|
|
UINT16 red_length; /* number of "red" bits within pixel word (5) */
|
|
|
|
UINT16 red_mask; /* mask for the "red" bits in a pixel word */
|
|
|
|
UINT16 green_offset; /* offset of "green" bits within pixel word (5) */
|
|
|
|
UINT16 green_length; /* number of "green" bits within pixel word (6) */
|
|
|
|
UINT16 green_mask; /* mask for the "green" bits in a pixel word */
|
|
|
|
UINT16 blue_offset; /* offset of "blue" bits within pixel word (0) */
|
|
|
|
UINT16 blue_length; /* number of "blue" bits within pixel word (5) */
|
|
|
|
UINT16 blue_mask; /* mask for the "blue" bits in a pixel word */
|
2019-12-01 19:39:14 -07:00
|
|
|
} FBINFO;
|
|
|
|
typedef const FBINFO * const PCFBINFO;
|
|
|
|
|
2019-12-07 13:07:59 -07:00
|
|
|
extern PCFBINFO Fb_Info; /* pointer to screen information */
|
|
|
|
extern UINT16 *Fb_Ptr; /* pointer to memory-mapped screen buffer */
|
2019-12-01 19:39:14 -07:00
|
|
|
|
2019-12-05 18:21:37 -07:00
|
|
|
extern HRESULT Fb_setup(void);
|
2019-12-06 20:57:44 -07:00
|
|
|
extern void Fb_clear(void);
|
2019-12-01 18:53:54 -07:00
|
|
|
|
|
|
|
#endif /* __FBINIT_H_INCLUDED */
|