blob: 44d74564fe47ecf633be8d43bd8cb59be86587d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifdef CONFIG_VGA_WIDTH
#define VGA_DEFAULT_WIDTH CONFIG_VGA_WIDTH
#else
#define VGA_DEFAULT_WIDTH 800
#endif
#ifdef CONFIG_VGA_HEIGHT
#define VGA_DEFAULT_HEIGHT CONFIG_VGA_HEIGHT
#else
#define VGA_DEFAULT_HEIGHT 600
#endif
#ifdef CONFIG_VGA_DEPTH
#define VGA_DEFAULT_DEPTH CONFIG_VGA_DEPTH
#else
#define VGA_DEFAULT_DEPTH 8
#endif
#define VGA_DEFAULT_LINEBYTES (VGA_DEFAULT_WIDTH*((VGA_DEFAULT_DEPTH+7)/8))
void setup_video(void);
unsigned long video_get_color(int col_ind);
void video_mask_blit(void);
void video_invert_rect(void);
void video_fill_rect(void);
extern struct video_info {
volatile ihandle_t *ih;
volatile ucell *mvirt;
volatile ucell *rb, *w, *h, *depth;
volatile ucell *pal; /* 256 elements */
} video;
#define VIDEO_DICT_VALUE(x) (*(ucell *)(x))
|