diff options
Diffstat (limited to 'patch/bar_awesomebar.c')
| -rw-r--r-- | patch/bar_awesomebar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/bar_awesomebar.c b/patch/bar_awesomebar.c index 81711f3..c6fe8f1 100644 --- a/patch/bar_awesomebar.c +++ b/patch/bar_awesomebar.c @@ -50,7 +50,7 @@ draw_awesomebar(Bar *bar, BarArg *a) cpad = 0; #endif // BAR_CENTEREDWINDOWNAME_PATCH #if BAR_WINICON_PATCH - ipad = c->icon ? c->icon->width + ICONSPACING : 0; + ipad = c->icon ? c->icw + ICONSPACING : 0; #endif // BAR_WINICON_PATCH tx = x; @@ -80,7 +80,7 @@ draw_awesomebar(Bar *bar, BarArg *a) #if BAR_WINICON_PATCH if (ipad) { - drw_img(drw, tx, a->y + (a->h - c->icon->height) / 2, c->icon, tmpicon); + drw_pic(drw, tx, a->y + (a->h - c->ich) / 2, c->icw, c->ich, c->icon); tx += ipad; tw -= ipad; } |
