cc_frm_picture: try to fix dimension assignment

init() was only with partial effect for dimensions,
watched in moviebrowser movie covers


Origin commit data
------------------
Branch: ni/coolstream
Commit: aa9438cbe4
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-12-02 (Thu, 02 Dec 2021)



------------------
This commit was generated by Migit
This commit is contained in:
2021-12-02 20:11:15 +01:00
committed by vanhofen
parent a2e8c9f11d
commit dd562a3da5

View File

@@ -59,13 +59,15 @@ void CComponentsPicture::SetTransparent(const int &mode)
void CComponentsPicture::setWidth(const int &w, bool keep_aspect)
{
ccp->setWidth(w, keep_aspect);
init(x, y, ccp->getBodyBGImage(), ccp->getBodyBGImageTranparencyMode());
CComponentsForm::setWidth(ccp->getWidth());
CComponentsForm::setHeight(ccp->getHeight());
}
void CComponentsPicture::setHeight(const int &h, bool keep_aspect)
{
ccp->setHeight(h, keep_aspect);
init(x, y, ccp->getBodyBGImage(), ccp->getBodyBGImageTranparencyMode());
CComponentsForm::setWidth(ccp->getWidth());
CComponentsForm::setHeight(ccp->getHeight());
}
void CComponentsPicture::paint(const bool &do_save_bg)