Many changes, bugfixes to user vsnprintf and to escape code handling
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / main.c
1 /*
2  * Acess GUI (AxWin) Version 2
3  * By John Hodge (thePowersGang)
4  */
5 #include "common.h"
6 #include <acess/sys.h>
7
8 // === IMPORTS ===
9 extern void     ParseCommandline(int argc, char *argv[]);
10 extern void     Video_Setup(void);
11 extern void     WM_Update(void);
12 extern void     Messages_PollIPC(void);
13
14 // === GLOBALS ===
15 char    *gsTerminalDevice = NULL;
16 char    *gsMouseDevice = NULL;
17
18  int    giScreenWidth = 640;
19  int    giScreenHeight = 480;
20 uint32_t        *gpScreenBuffer = NULL;
21
22  int    giTerminalFD = -1;
23  int    giMouseFD = -1;
24  
25
26 // === CODE ===
27 /**
28  * \brief Program Entrypoint
29  */
30 int main(int argc, char *argv[])
31 {
32         ParseCommandline(argc, argv);
33         
34         if( gsTerminalDevice == NULL ) {
35                 gsTerminalDevice = "/Devices/VTerm/6";
36         }
37         
38         Video_Setup();
39         Interface_Init();
40         
41         WM_Update();
42         
43         // Main Loop
44         for(;;)
45         {
46                 Messages_PollIPC();
47                 //yield();
48         }
49         return 0;
50 }

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