Added sanity checking to kernel vnsprintf
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / interface.c
index 52030f3..af02429 100644 (file)
@@ -1,6 +1,9 @@
 /*
  * Acess GUI (AxWin) Version 2
  * By John Hodge (thePowersGang)
+ * 
+ * interface.c
+ * > Main Overarching UI
  */
 #include "common.h"
 
@@ -13,13 +16,18 @@ tElement    *gpInterface_TabBar;
 tElement       *gpInterface_TabContent;
 
 // === CODE ===
+/**
+ * \brief Initialise the UI
+ */
 void Interface_Init(void)
 {
        tElement        *area;
        tElement        *btn, *text;
        
+       // Calculate sizes
        giInterface_Width = giScreenWidth/16;
        
+       // Set root window to no-border
        WM_SetFlags(NULL, 0);
        
        // -- Create Sidebar --
@@ -39,7 +47,7 @@ void Interface_Init(void)
        // ---- Plain <hr/> style spacer ----
        WM_CreateElement(area, ELETYPE_SPACER, 0);
        
-       // Windows Go Here
+       // Open Windows Go Here
        
        // --- Bottom Segment ---
        area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL|ELEFLAG_ALIGN_END);

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