mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user