CComponentsInfoBox: fix image y pos

Image was not centered, because of frame was not considered.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e2c5cb939
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-06-15 01:01:54 +02:00
parent b31221c209
commit 2e738f0803

View File

@@ -124,7 +124,7 @@ void CComponentsInfoBox::paintPicture()
pic->doPaintBg(false);
//fit icon into frame
pic->setYPos(y_pic+(height/2-pic->getHeight()/2));
pic->setYPos(y_pic+(height-2*fr_thickness)/2-pic->getHeight()/2);
//paint, but set visibility mode
pic->allowPaint(cc_allow_paint);