From f0c63ca852fab9f8e150095137a19bfdfdaa110a 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 --- 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)