mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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