mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CComponentsInfoBox: fix image y pos
Image was not centered, because of frame was not considered.
This commit is contained in:
@@ -124,7 +124,7 @@ void CComponentsInfoBox::paintPicture()
|
|||||||
pic->doPaintBg(false);
|
pic->doPaintBg(false);
|
||||||
|
|
||||||
//fit icon into frame
|
//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
|
//paint, but set visibility mode
|
||||||
pic->allowPaint(cc_allow_paint);
|
pic->allowPaint(cc_allow_paint);
|
||||||
|
Reference in New Issue
Block a user