cc_frm_picture: try to fix dimension assignment

init() was only with partial effect for dimensions,
watched in moviebrowser movie covers
This commit is contained in:
2021-12-02 20:11:15 +01:00
parent d0a8c7eafc
commit f0c63ca852

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)