IPStack - Cleaned up userland 'ip' tool, and fixed some little bugs
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / decorator.c
index f91c0ca..6239b76 100644 (file)
@@ -48,7 +48,7 @@ void Decorator_UpdateBorderSize(tWindow *Window)
 
 void Decorator_Redraw(tWindow *Window)
 {
-        int    bActive;
+        int    bActive = 0;
         int    text_width, text_height;
        
        // TODO: This could possibly be expensive, but is there a better way?
@@ -83,7 +83,7 @@ void Decorator_Redraw(tWindow *Window)
 
        WM_Render_GetTextDims(
                NULL,   // TODO: Select font
-               Window->Title ? Window->Title : "jI",
+               Window->Title ? Window->Title : "jI", -1,
                &text_width, &text_height
                );
        WM_Render_DrawText(Window,
@@ -91,7 +91,7 @@ void Decorator_Redraw(tWindow *Window)
                Window->W - ciTitlebarHeight - 4, text_height,
                NULL,   // TODO: Select font
                (bActive ? cColourActive_TitleText : cColourInactive_TitleText),
-               Window->Title ? Window->Title : "--"
+               Window->Title ? Window->Title : "--", -1
                );
        
        // Maximized windows don't have any other borders

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