summaryrefslogtreecommitdiff
path: root/src/components/lazyimage.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-08-02 01:48:33 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-08-02 01:48:33 -0400
commit9e4382aa7740bf309aa55ff07819b097684122ba (patch)
tree2227b48ec7f6e691e8876a7bb87eb3188aa95498 /src/components/lazyimage.cpp
parentfad555c355e20f4a019d7b1e0d56692dd91e332d (diff)
parentab2896b838d32d88e7a79b37e6a24ef770e64bc2 (diff)
downloadabaddon-portaudio-9e4382aa7740bf309aa55ff07819b097684122ba.tar.gz
abaddon-portaudio-9e4382aa7740bf309aa55ff07819b097684122ba.zip
Merge branch 'master' into rnnoise
Diffstat (limited to 'src/components/lazyimage.cpp')
-rw-r--r--src/components/lazyimage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/lazyimage.cpp b/src/components/lazyimage.cpp
index 13bd65d..90b8f28 100644
--- a/src/components/lazyimage.cpp
+++ b/src/components/lazyimage.cpp
@@ -39,7 +39,9 @@ bool LazyImage::OnDraw(const Cairo::RefPtr<Cairo::Context> &context) {
Abaddon::Get().GetImageManager().LoadAnimationFromURL(m_url, m_width, m_height, sigc::track_obj(cb, *this));
} else {
auto cb = [this](const Glib::RefPtr<Gdk::Pixbuf> &pb) {
- property_pixbuf() = pb->scale_simple(m_width, m_height, Gdk::INTERP_BILINEAR);
+ int cw, ch;
+ GetImageDimensions(pb->get_width(), pb->get_height(), cw, ch, m_width, m_height);
+ property_pixbuf() = pb->scale_simple(cw, ch, Gdk::INTERP_BILINEAR);
};
Abaddon::Get().GetImageManager().LoadFromURL(m_url, sigc::track_obj(cb, *this));