diff --git a/lib/libtuxtxt/tuxtxt.cpp b/lib/libtuxtxt/tuxtxt.cpp index 0fb8f378e..38365b7e8 100644 --- a/lib/libtuxtxt/tuxtxt.cpp +++ b/lib/libtuxtxt/tuxtxt.cpp @@ -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); diff --git a/lib/libtuxtxt/tuxtxt.h b/lib/libtuxtxt/tuxtxt.h index ec8ba95f8..aee6b9d1f 100644 --- a/lib/libtuxtxt/tuxtxt.h +++ b/lib/libtuxtxt/tuxtxt.h @@ -13,7 +13,7 @@ * by Seddi * * * * * - * ported to Tripledragon, SPARK and AZbox 2010-2012 Stefan Seyfried * + * ported to Tripledragon, SPARK and AZbox 2010-2013 Stefan Seyfried * ******************************************************************************/ #define TUXTXT_CFG_STANDALONE 0 // 1:plugin only 0:use library @@ -98,7 +98,7 @@ int tv_pip_y; //#define TV169FULLWIDTH (ex - sx)/2 #define TV169FULLWIDTH (screen_w / 2) #define TV169FULLHEIGHT (ey - sy) -#define TOPMENUSTARTX TV43STARTX+2 +#define TOPMENUSTARTX (TV43STARTX+2) //#define TOPMENUENDX TVENDX #define TOPMENUSTARTY StartY #define TOPMENUENDY TV43STARTY