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