From dd562a3da501025fd6be97c7e3f56a1b2418be5e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 2 Dec 2021 20:11:15 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/aa9438cbe4d91d79a023809991e7326b6f7c0204 Author: Thilo Graf Date: 2021-12-02 (Thu, 02 Dec 2021) ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_picture.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_frm_picture.cpp b/src/gui/components/cc_frm_picture.cpp index 1d2cee854..0b0d6b899 100644 --- a/src/gui/components/cc_frm_picture.cpp +++ b/src/gui/components/cc_frm_picture.cpp @@ -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)