mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- infoviewer: simplify body height calculation
This commit is contained in:
@@ -430,11 +430,11 @@ void CInfoViewer::paintHead()
|
|||||||
|
|
||||||
void CInfoViewer::paintBody()
|
void CInfoViewer::paintBody()
|
||||||
{
|
{
|
||||||
int h_body = InfoHeightY - header_height - SHADOW_OFFSET + (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
|
int h_body = InfoHeightY - header_height - SHADOW_OFFSET;
|
||||||
int y_body = ChanNameY + header_height;
|
if (!zap_mode)
|
||||||
|
h_body += infoViewerBB->bottom_bar_offset;
|
||||||
|
|
||||||
if(zap_mode)
|
int y_body = ChanNameY + header_height;
|
||||||
h_body -= (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
|
|
||||||
|
|
||||||
if (body == NULL){
|
if (body == NULL){
|
||||||
body = new CComponentsShapeSquare(ChanInfoX, y_body, BoxEndX-ChanInfoX, h_body);
|
body = new CComponentsShapeSquare(ChanInfoX, y_body, BoxEndX-ChanInfoX, h_body);
|
||||||
|
Reference in New Issue
Block a user