Working on GUI, side changes to the message passing
[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();
11
12 // === GLOBALS ===
13 char    *gsTerminalDevice = NULL;
14 char    *gsMouseDevice = NULL;
15
16  int    giScreenWidth = 640;
17  int    giScreenHeight = 480;
18 uint32_t        *gpScreenBuffer = NULL;
19
20  int    giTerminalFD = -1;
21  int    giMouseFD = -1;
22  
23
24 // === CODE ===
25 /**
26  * \brief Program Entrypoint
27  */
28 int main(int argc, char *argv[])
29 {
30         ParseCommandline(argc, argv);
31         
32         if( gsTerminalDevice == NULL ) {
33                 gsTerminalDevice = "/Devices/VTerm/7";
34         }
35         
36         Video_Setup();
37         
38         // Main Loop
39         for(;;)
40         {
41                 yield();
42         }
43         return 0;
44 }

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