Usermode/axwin2 - Commenting
authorJohn Hodge <[email protected]>
Wed, 23 Mar 2011 05:56:59 +0000 (13:56 +0800)
committerJohn Hodge <[email protected]>
Wed, 23 Mar 2011 05:56:59 +0000 (13:56 +0800)
Usermode/Applications/axwin2_src/WM/decorator.c

index 9eb6a62..cc74e1a 100644 (file)
@@ -34,10 +34,10 @@ void Decorator_RenderWidget(tElement *Element)
        switch(Element->Type)
        {
        case ELETYPE_NONE:
-       case ELETYPE_BOX:       break;
+       case ELETYPE_BOX:       break;  // Box is a meta-element
        
-       case ELETYPE_TABBAR:    // TODO: Moar
-       case ELETYPE_TOOLBAR:
+       case ELETYPE_TABBAR:    // Tab Bar
+       case ELETYPE_TOOLBAR:   // Tool Bar
                Video_DrawRect(
                        Element->CachedX, Element->CachedY,
                        Element->CachedW, Element->CachedH,
@@ -50,7 +50,7 @@ void Decorator_RenderWidget(tElement *Element)
                        );
                break;
        
-       case ELETYPE_SPACER:
+       case ELETYPE_SPACER:    // Spacer (subtle line)
                Video_FillRect(
                        Element->CachedX+3, Element->CachedY+3,
                        Element->CachedW-6, Element->CachedH-6,
@@ -58,11 +58,11 @@ void Decorator_RenderWidget(tElement *Element)
                        );
                break;
        
-       case ELETYPE_BUTTON:
+       case ELETYPE_BUTTON:    // Button
                Video_FillRect(
                        Element->CachedX+1, Element->CachedY+1,
                        Element->CachedW-2, Element->CachedH-2,
-                       BUTTON_BORDER
+                       BUTTON_BGCOLOUR
                        );
                Video_DrawRect(
                        Element->CachedX, Element->CachedY,
@@ -88,5 +88,9 @@ void Decorator_RenderWidget(tElement *Element)
                        Element->Data
                        );
                break;
+               
+       default:
+               _SysDebug(" ERROR: Unknown type %i", Element->Type);
+               break;
        }
 }

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