Mercurial > mplayer.hg
comparison gui/ui/render.c @ 37014:01b3cd8a1e76
Simplify string termination.
author | ib |
---|---|
date | Sat, 29 Mar 2014 14:21:45 +0000 |
parents | 11d2d0444f42 |
children | 68066d733c76 |
comparison
equal
deleted
inserted
replaced
37013:11d2d0444f42 | 37014:01b3cd8a1e76 |
---|---|
481 char c[2]; | 481 char c[2]; |
482 | 482 |
483 l = (item->textwidth ? item->textwidth : item->width); | 483 l = (item->textwidth ? item->textwidth : item->width); |
484 x = (l ? l - ((d - DLABEL_DELAY) / 20) % l - 1 : 0); | 484 x = (l ? l - ((d - DLABEL_DELAY) / 20) % l - 1 : 0); |
485 c[0] = *item->text; | 485 c[0] = *item->text; |
486 c[1] = '\0'; | 486 c[1] = 0; |
487 | 487 |
488 if (x < (fntTextWidth(item->fontid, c) + 1) >> 1) { | 488 if (x < (fntTextWidth(item->fontid, c) + 1) >> 1) { |
489 item->starttime = GetTimerMS(); // stop again | 489 item->starttime = GetTimerMS(); // stop again |
490 item->last_x = x; // at current x pos | 490 item->last_x = x; // at current x pos |
491 } | 491 } |