CComponentsHeader: use previous offset to fit logo

Was OFFSET_INNER_MIN in older versions, not OFFSET_INNER_SMALL.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 330171c90b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-23 (Sun, 23 Apr 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-04-23 16:56:41 +02:00
parent d0a3315ca2
commit 9570a9d36a

View File

@@ -274,7 +274,7 @@ void CComponentsHeader::initIcon()
void CComponentsHeader::initLogo()
{
cch_logo.dy_max = cch_logo.dy_max == -1 ? height - 2*OFFSET_INNER_SMALL : cch_logo.dy_max;
cch_logo.dy_max = cch_logo.dy_max == -1 ? height - 2*OFFSET_INNER_MIN : cch_logo.dy_max;
if(!cch_logo_obj)
cch_logo_obj = new CComponentsChannelLogoScalable(width/2, height/2 - cch_logo.dy_max/2, cch_logo.Name, cch_logo.Id, this);