tuxtxt: fix topmenu for small OSD borders

Origin commit data
------------------
Commit: dbf7f9719b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-01-13 (Sun, 13 Jan 2013)
This commit is contained in:
Stefan Seyfried
2013-01-13 17:36:41 +01:00
parent 65a063245a
commit 6af4a0d3d3
2 changed files with 10 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
* *
* ported 2009 to HD1 by Coolstream LTD *
* *
* TD and SPARK port (C) 2010-2012 Stefan Seyfried *
* TD, SPARK and AZbox port (C) 2010-2013 Stefan Seyfried *
* *
******************************************************************************/
@@ -245,6 +245,13 @@ void RenderClearMenuLineBB(char *p, tstPageAttr *attrcol, tstPageAttr *attr)
#if 0
RenderCharBB(' ', attr); /* separator */
#endif
/* the fontwidth_topmenusmall is not correctly calculated: the navigation
* indicator ' ' is not considered and thus the font is slightly too wide.
* Shift the topmenu to the left instead of using a smaller font, since
* the worst that can happen is that the indicator is partly obscured and
* that looks better than empty space on the right of the topmenu.
*/
PosX = screen_x + screen_w - TOPMENUCHARS * fontwidth_topmenusmall;
for(col = 0; col < TOPMENUCHARS; col++)
{
RenderCharBB(*p++, attr);