From: ewt Date: Thu, 6 Nov 1997 19:22:15 +0000 (+0000) Subject: set proper background color for buttons X-Git-Tag: r0-21~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f48f20046019fc69171594fc27fc5d771a8b7a7d;p=thirdparty%2Fnewt.git set proper background color for buttons --- diff --git a/button.c b/button.c index e0e1216..cb60d41 100644 --- a/button.c +++ b/button.c @@ -87,8 +87,10 @@ static void buttonDraw(newtComponent co) { static void buttonDrawIt(newtComponent co, int active, int pushed) { struct button * bu = co->data; - if (bu->bgColor == -1) + if (bu->bgColor == -1) { + newtGotorc(co->top, co->left); bu->bgColor = (SLsmg_char_at() >> 8) & 0xFF; + } SLsmg_set_color(NEWT_COLORSET_BUTTON);