34 lines
1.5 KiB
C
34 lines
1.5 KiB
C
#ifndef __FBINIT_H_INCLUDED
|
|
#define __FBINIT_H_INCLUDED
|
|
|
|
#include "wintype.h"
|
|
|
|
/* info about the frame buffer */
|
|
typedef struct tagFBINFO {
|
|
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 */
|
|
} FBINFO;
|
|
typedef const FBINFO * const PCFBINFO;
|
|
|
|
extern PCFBINFO Fb_Info; /* pointer to screen information */
|
|
extern UINT16 *Fb_Ptr; /* pointer to memory-mapped screen buffer */
|
|
|
|
extern HRESULT Fb_setup(void);
|
|
extern void Fb_clear(void);
|
|
|
|
#endif /* __FBINIT_H_INCLUDED */
|