-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics.h
executable file
·71 lines (60 loc) · 2.11 KB
/
graphics.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* mz800em, a VGA MZ800 emulator for Linux.
*
* Declarations for MZ800 graphics module.
* Copr. 1998 Matthias Koeppe <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
extern int mz800mode;
extern int directvideo;
extern int mzbpl;
extern int DMD, RF, WF;
extern int SCROLL[8];
#define BCOL (SCROLL[6])
extern unsigned char *vptr; /* real screen buffer */
extern unsigned char *vbuffer; /* virtual screen buffer */
extern unsigned char *readptr;
/* MZ800 colors */
extern int palette[4];
extern int palette_block;
extern int blackwhite;
extern int mzcolors[16], mzgrays[16];
extern int refresh_screen;
void update_scrn();
extern void update_WF(int a);
extern void update_RF(int a);
extern void update_DMD(int a);
extern void graphics_write(int addr, int value);
extern int graphics_read(int addr);
extern void scroll();
extern void init_scroll();
extern void update_palette();
extern void do_border(int color);
extern void req_graphics_update(unsigned char *buffer, int x, int y, int pixels);
extern void do_update_graphics();
extern void begin_draw();
extern void end_draw();
extern void maybe_update_graphics();
extern void toggle_blackwhite();
/* mzterm services */
typedef struct {
unsigned short x1;
unsigned short x2;
unsigned short y1;
unsigned char r[5];
unsigned short y2;
} __attribute__ ((aligned (1), packed)) plane_struct;
extern void planeonoff(plane_struct *ps, int on);
extern void clearscreen(int endaddr, int count, int color);