mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
tuxtxt: remove unused var_screeninfo.yoffset (always 0)
This commit is contained in:
@@ -75,7 +75,7 @@ void FillRect(int x, int y, int w, int h, fb_pixel_t color, bool modeFullColor)
|
|||||||
void FillBorder(fb_pixel_t color, bool modeFullColor = false);
|
void FillBorder(fb_pixel_t color, bool modeFullColor = false);
|
||||||
void FillBorder(fb_pixel_t color, bool modeFullColor)
|
void FillBorder(fb_pixel_t color, bool modeFullColor)
|
||||||
{
|
{
|
||||||
int ys = (var_screeninfo.yres-var_screeninfo.yoffset);
|
int ys = var_screeninfo.yres;
|
||||||
FillRect(0 , ys ,StartX ,var_screeninfo.yres ,color, modeFullColor);
|
FillRect(0 , ys ,StartX ,var_screeninfo.yres ,color, modeFullColor);
|
||||||
FillRect(StartX, ys ,displaywidth,StartY ,color, modeFullColor);
|
FillRect(StartX, ys ,displaywidth,StartY ,color, modeFullColor);
|
||||||
FillRect(StartX, ys+StartY+25*fontheight,displaywidth,var_screeninfo.yres-(StartY+25*fontheight),color, modeFullColor);
|
FillRect(StartX, ys+StartY+25*fontheight,displaywidth,var_screeninfo.yres-(StartY+25*fontheight),color, modeFullColor);
|
||||||
@@ -257,7 +257,7 @@ void RenderClearMenuLineBB(char *p, tstPageAttr *attrcol, tstPageAttr *attr)
|
|||||||
|
|
||||||
void ClearBB(fb_pixel_t color)
|
void ClearBB(fb_pixel_t color)
|
||||||
{
|
{
|
||||||
FillRect(0, var_screeninfo.yres - var_screeninfo.yoffset, var_screeninfo.xres, var_screeninfo.yres, color);
|
FillRect(0, var_screeninfo.yres, var_screeninfo.xres, var_screeninfo.yres, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearFB(int /*color*/)
|
void ClearFB(int /*color*/)
|
||||||
@@ -1638,8 +1638,6 @@ int tuxtx_main(int pid, int page, int source)
|
|||||||
var = fbp->getScreenInfo();
|
var = fbp->getScreenInfo();
|
||||||
memcpy(&var_screeninfo, var, sizeof(struct fb_var_screeninfo));
|
memcpy(&var_screeninfo, var, sizeof(struct fb_var_screeninfo));
|
||||||
|
|
||||||
/* set variable screeninfo for double buffering */
|
|
||||||
var_screeninfo.yoffset = 0;
|
|
||||||
#if 0
|
#if 0
|
||||||
sx = x + 10;
|
sx = x + 10;
|
||||||
sy = y + 10;
|
sy = y + 10;
|
||||||
@@ -2153,7 +2151,7 @@ int Init(int source)
|
|||||||
printf("TuxTxt <screen real %d*%d, virtual %d*%d, offset %d>\n",
|
printf("TuxTxt <screen real %d*%d, virtual %d*%d, offset %d>\n",
|
||||||
var_screeninfo.xres, var_screeninfo.yres,
|
var_screeninfo.xres, var_screeninfo.yres,
|
||||||
var_screeninfo.xres_virtual, var_screeninfo.yres_virtual,
|
var_screeninfo.xres_virtual, var_screeninfo.yres_virtual,
|
||||||
var_screeninfo.yoffset);
|
0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* set new colormap */
|
/* set new colormap */
|
||||||
@@ -4926,7 +4924,7 @@ void RenderChar(int Char, tstPageAttr *Attribute, int zoom, int yoffset)
|
|||||||
|
|
||||||
void RenderCharFB(int Char, tstPageAttr *Attribute)
|
void RenderCharFB(int Char, tstPageAttr *Attribute)
|
||||||
{
|
{
|
||||||
RenderChar(Char, Attribute, zoommode[boxed], var_screeninfo.yoffset);
|
RenderChar(Char, Attribute, zoommode[boxed], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@@ -4935,7 +4933,7 @@ void RenderCharFB(int Char, tstPageAttr *Attribute)
|
|||||||
|
|
||||||
void RenderCharBB(int Char, tstPageAttr *Attribute)
|
void RenderCharBB(int Char, tstPageAttr *Attribute)
|
||||||
{
|
{
|
||||||
RenderChar(Char, Attribute, 0, var_screeninfo.yres-var_screeninfo.yoffset);
|
RenderChar(Char, Attribute, 0, var_screeninfo.yres);
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@@ -5794,7 +5792,7 @@ void DecodePage()
|
|||||||
RenderDRCS(
|
RenderDRCS(
|
||||||
page_char + 20 * (DRCSCOLS * row + col + 2),
|
page_char + 20 * (DRCSCOLS * row + col + 2),
|
||||||
lfb
|
lfb
|
||||||
+ (StartY + fontheight + DRCSYSPC * row + var_screeninfo.yres - var_screeninfo.yoffset) * var_screeninfo.xres
|
+ (StartY + fontheight + DRCSYSPC * row + var_screeninfo.yres) * var_screeninfo.xres
|
||||||
+ (StartX + DRCSXSPC * col),
|
+ (StartX + DRCSXSPC * col),
|
||||||
ax, white, black);
|
ax, white, black);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user