Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: AIO 14.08 - a bug in osd.c/cOsdMenu::hk?
Carsten Koch wrote:
...
> and here is a suggested fix:
and one more thing - the buffer in cOsdMenu::hk is awfully
small, so the first 10 command titles are truncated to 29 characters.
So here is the hk method that I now use:
const char *cOsdMenu::hk(const char *s)
{
static char buffer[110];
if (s && hasHotkeys) {
if (digit == 0 && '1' <= *s && *s <= '9' && *(s + 1) == ' ')
digit = 11; // prevents automatic hotkeys - input already has them
if (digit < 10) {
++digit;
snprintf(buffer, sizeof(buffer), " %c %s", digit % 10 + '0', s);
s = buffer;
}
}
return s;
}
Carsten.
Home |
Main Index |
Thread Index