Fixed compile issues in AxWin2 WM
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / common.h
1 /*
2  * Acess GUI (AxWin) Version 2
3  * By John Hodge (thePowersGang)
4  */
5 #ifndef _COMMON_H_
6 #define _COMMON_H_
7
8 #include <stdlib.h>
9 #include <stdio.h>
10 #include <stdint.h>
11
12 #include "wm.h"
13 #include "image.h"
14 //#include "font.h"
15
16 typedef struct sFont    tFont;
17
18 // === GLOBALS ===
19 extern char     *gsTerminalDevice;
20 extern char     *gsMouseDevice;
21
22 extern int      giScreenWidth;
23 extern int      giScreenHeight;
24 extern uint32_t *gpScreenBuffer;
25
26 extern int      giTerminalFD;
27 extern int      giMouseFD;
28
29 // === Functions ===
30 extern void     memset32(void *ptr, uint32_t val, size_t count);
31 // --- Video ---
32 extern void     Video_Update(void);
33 extern void     Video_FillRect(short X, short Y, short W, short H, uint32_t Color);
34 extern void     Video_DrawRect(short X, short Y, short W, short H, uint32_t Color);
35 extern int      Video_DrawText(short X, short Y, short W, short H, tFont *Font, uint32_t Color, char *Text);
36 extern void Video_DrawImage(short X, short Y, short W, short H, tImage *Image);
37 // --- Debug Hack ---
38 extern void     _SysDebug(const char *Format, ...);
39 #endif

UCC git Repository :: git.ucc.asn.au