1 typedef struct Cursor Cursor;
2 typedef struct Cursorinfo Cursorinfo;
3 typedef struct OScreen OScreen;
4 typedef struct Omap3fb Omap3fb;
5 typedef struct Settings Settings;
14 extern Cursorinfo cursor;
17 extern void mousetrack(int, int, int, int);
18 extern void absmousetrack(int, int, int, int);
19 extern Point mousexy(void);
21 extern void mouseaccelerate(int);
22 extern void mouseresize(void);
23 extern void mouseredraw(void);
26 extern uchar* attachscreen(Rectangle*, ulong*, int*, int*, int*);
27 extern void flushmemscreen(Rectangle);
28 extern void cursoron(void);
29 extern void cursoroff(void);
30 extern void setcursor(Cursor*);
31 extern int screensize(int, int, int, ulong);
32 extern int screenaperture(int, int);
33 extern Rectangle physgscreenr; /* actual monitor size */
34 extern void blankscreen(int);
36 extern void swcursorinit(void);
37 extern void swcursorhide(void);
38 extern void swcursoravoid(Rectangle);
39 extern void swcursorunhide(void);
42 extern void deletescreenimage(void);
43 extern void resetscreenimage(void);
44 extern int drawhasclients(void);
45 extern ulong blanktime;
46 extern void setscreenimageclipr(Rectangle);
47 extern void drawflush(void);
48 extern int drawidletime(void);
49 extern QLock drawlock;
51 #define ishwimage(i) 0 /* for ../port/devdraw.c */
54 void swcursorhide(void);
55 void swcursoravoid(Rectangle);
56 void swcursordraw(Point);
57 void swcursorload(Cursor *);
58 void swcursorinit(void);
60 /* for communication between devdss.c and screen.c */
66 Depth = 16, /* bits per pixel */
68 Pcolours = 256, /* Palette */
76 /* settings indices */
84 uint wid; /* width in pixels */
85 uint ht; /* height in pixels */
86 uint freq; /* refresh frequency; only printed */
87 uint chan; /* draw chan */
89 /* shouldn't be needed? */
92 /* horizontal timing */
93 uint hbp; /* back porch: pixel clocks before scan line */
94 uint hfp; /* front porch: pixel clocks after scan line */
95 uint hsw; /* sync pulse width: more hfp */
98 uint vbp; /* back porch: line clocks before frame */
99 uint vfp; /* front porch: line clocks after frame */
100 uint vsw; /* sync pulse width: more vfp */
109 struct Omap3fb { /* frame buffer for 24-bit active color */
110 // short palette[256];
111 /* pixel data, even; base type's width must match Depth */
112 ushort pixel[Wid*Ht];