Hello,

in the Draw() routine of button.c is a small mistake:

                switch (bu->valign) {
                case AG_TEXT_TOP:       x = bu->tPad;                   break;
                case AG_TEXT_MIDDLE:    x = HEIGHT(bu)/2 - h/2;         break;
                case AG_TEXT_BOTTOM:    x = HEIGHT(bu) - h - bu->bPad;  break;
                }

In the code above must x be replaced by y ... the alignment works then perfecly.

Thanks

--Armin



_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to