CInfoViewer: remove shadow offset from init,

items works with its own values
This commit is contained in:
2016-01-24 16:17:48 +01:00
committed by M. Liebmann
parent 107c3234b2
commit da0b867098

View File

@@ -429,7 +429,7 @@ void CInfoViewer::paintHead()
void CInfoViewer::paintBody() void CInfoViewer::paintBody()
{ {
int h_body = InfoHeightY - header_height + (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0); int h_body = InfoHeightY - header_height - SHADOW_OFFSET + (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
if(zap_mode) if(zap_mode)
h_body -= (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0); h_body -= (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
@@ -1984,9 +1984,11 @@ void CInfoViewer::killTitle()
{ {
is_visible = false; is_visible = false;
infoViewerBB->is_visible = false; infoViewerBB->is_visible = false;
#if 0 //unused
int bottom = BoxEndY + SHADOW_OFFSET + infoViewerBB->bottom_bar_offset; int bottom = BoxEndY + SHADOW_OFFSET + infoViewerBB->bottom_bar_offset;
if (showButtonBar) if (showButtonBar)
bottom += infoViewerBB->InfoHeightY_Info; bottom += infoViewerBB->InfoHeightY_Info;
#endif
if (infoViewerBB->getFooter()) if (infoViewerBB->getFooter())
infoViewerBB->getFooter()->kill(); infoViewerBB->getFooter()->kill();
if (infoViewerBB->getCABar()) if (infoViewerBB->getCABar())