mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
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:
@@ -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);
|
||||
|
@@ -13,7 +13,7 @@
|
||||
* by Seddi <seddi@i-have-a-dreambox.com> *
|
||||
* *
|
||||
* *
|
||||
* 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
|
||||
|
Reference in New Issue
Block a user