Lines 141-149
Link Here
|
141 |
static int prev_header_len = -1; |
141 |
static int prev_header_len = -1; |
142 |
WINDOW *w = screen->top_window.w; |
142 |
WINDOW *w = screen->top_window.w; |
143 |
|
143 |
|
144 |
if(prev_header_len!=strlen(header)) |
144 |
if(prev_header_len!=xstrlen(header)) |
145 |
{ |
145 |
{ |
146 |
prev_header_len = strlen(header); |
146 |
prev_header_len = xstrlen(header); |
147 |
clear = 1; |
147 |
clear = 1; |
148 |
} |
148 |
} |
149 |
|
149 |
|
Lines 192-198
Link Here
|
192 |
g_snprintf(buf, 32, _(" Volume %d%%"), c->status->volume); |
192 |
g_snprintf(buf, 32, _(" Volume %d%%"), c->status->volume); |
193 |
} |
193 |
} |
194 |
colors_use(w, COLOR_TITLE); |
194 |
colors_use(w, COLOR_TITLE); |
195 |
mvwaddstr(w, 0, screen->top_window.cols-strlen(buf), buf); |
195 |
mvwaddstr(w, 0, screen->top_window.cols-xstrlen(buf), buf); |
196 |
|
196 |
|
197 |
flags[0] = 0; |
197 |
flags[0] = 0; |
198 |
if( c->status->repeat ) |
198 |
if( c->status->repeat ) |
Lines 207-213
Link Here
|
207 |
mvwhline(w, 1, 0, ACS_HLINE, screen->top_window.cols); |
207 |
mvwhline(w, 1, 0, ACS_HLINE, screen->top_window.cols); |
208 |
if( flags[0] ) |
208 |
if( flags[0] ) |
209 |
{ |
209 |
{ |
210 |
wmove(w,1,screen->top_window.cols-strlen(flags)-3); |
210 |
wmove(w,1,screen->top_window.cols-xstrlen(flags)-3); |
211 |
waddch(w, '['); |
211 |
waddch(w, '['); |
212 |
colors_use(w, COLOR_LINE_BOLD); |
212 |
colors_use(w, COLOR_LINE_BOLD); |
213 |
waddstr(w, flags); |
213 |
waddstr(w, flags); |
Lines 281-287
Link Here
|
281 |
if( str ) |
281 |
if( str ) |
282 |
{ |
282 |
{ |
283 |
waddstr(w, str); |
283 |
waddstr(w, str); |
284 |
x += strlen(str)+1; |
284 |
x += xstrlen(str)+1; |
285 |
} |
285 |
} |
286 |
|
286 |
|
287 |
/* create time string */ |
287 |
/* create time string */ |
Lines 315-321
Link Here
|
315 |
if( (IS_PLAYING(status->state) || IS_PAUSED(status->state)) ) |
315 |
if( (IS_PLAYING(status->state) || IS_PAUSED(status->state)) ) |
316 |
{ |
316 |
{ |
317 |
char songname[MAX_SONGNAME_LENGTH]; |
317 |
char songname[MAX_SONGNAME_LENGTH]; |
318 |
int width = COLS-x-strlen(screen->buf); |
318 |
int width = COLS-x-xstrlen(screen->buf); |
319 |
|
319 |
|
320 |
if( song ) |
320 |
if( song ) |
321 |
strfsong(songname, MAX_SONGNAME_LENGTH, STATUS_FORMAT, song); |
321 |
strfsong(songname, MAX_SONGNAME_LENGTH, STATUS_FORMAT, song); |
Lines 324-330
Link Here
|
324 |
|
324 |
|
325 |
colors_use(w, COLOR_STATUS); |
325 |
colors_use(w, COLOR_STATUS); |
326 |
/* scroll if the song name is to long */ |
326 |
/* scroll if the song name is to long */ |
327 |
if( strlen(songname) > width ) |
327 |
if( xstrlen(songname) > width ) |
328 |
{ |
328 |
{ |
329 |
static scroll_state_t st = { 0, 0 }; |
329 |
static scroll_state_t st = { 0, 0 }; |
330 |
char *tmp = strscroll(songname, " *** ", width, &st); |
330 |
char *tmp = strscroll(songname, " *** ", width, &st); |
Lines 338-344
Link Here
|
338 |
/* display time string */ |
338 |
/* display time string */ |
339 |
if( screen->buf[0] ) |
339 |
if( screen->buf[0] ) |
340 |
{ |
340 |
{ |
341 |
x = screen->status_window.cols - strlen(screen->buf); |
341 |
x = screen->status_window.cols - xstrlen(screen->buf); |
342 |
colors_use(w, COLOR_STATUS_TIME); |
342 |
colors_use(w, COLOR_STATUS_TIME); |
343 |
mvwaddstr(w, 0, x, screen->buf); |
343 |
mvwaddstr(w, 0, x, screen->buf); |
344 |
} |
344 |
} |