Fix battery placement

This commit is contained in:
Jean-André Santoni 2016-12-20 00:47:18 +01:00
parent f0fc61be32
commit ce27d38d0e

View File

@ -2665,7 +2665,7 @@ static void xmb_frame(void *data)
if (percent > 0)
{
size_t x_pos = 0;
size_t x_pos_icon = xmb->margins.title.left / 2;
size_t x_pos_icon = xmb->margins.title.left;
if (datetime_width)
x_pos_icon += datetime_width + (xmb->icon.size / 2) + (xmb->margins.title.left / 2);
@ -2692,7 +2692,7 @@ static void xmb_frame(void *data)
xmb->margins.title.left;
xmb_draw_text(xmb, msg,
width - xmb->margins.title.left - x_pos,
width - xmb->margins.title.left*1.5 - x_pos,
xmb->margins.title.top, 1, 1, TEXT_ALIGN_RIGHT,
width, height, xmb->font);
}