From 2acd2336961b365a779c0d7f8056f6c81a897e60 Mon Sep 17 00:00:00 2001 From: Timothy Schoen Date: Sun, 25 Jan 2026 01:27:13 +0100 Subject: [PATCH] Simplify image resampling --- Libraries/nanovg | 2 +- Source/Objects/PictureObject.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/nanovg b/Libraries/nanovg index 7075c75f5..eca52d730 160000 --- a/Libraries/nanovg +++ b/Libraries/nanovg @@ -1 +1 @@ -Subproject commit 7075c75f5eb1f303ebac425b1c4d3e71921d61c8 +Subproject commit eca52d730894e6fa849739040ddfe60519084621 diff --git a/Source/Objects/PictureObject.h b/Source/Objects/PictureObject.h index cb16332ce..7ea0c2ff3 100644 --- a/Source/Objects/PictureObject.h +++ b/Source/Objects/PictureObject.h @@ -147,7 +147,7 @@ class PictureObject final : public ObjectBase, public AsyncUpdater { if (img.isValid()) { imageBuffer = NVGImage(nvg, img.getWidth(), img.getHeight(), [this](Graphics& g) { g.drawImageAt(img, 0, 0); - }); + }, NVGImage::MipMap); } img = Image(); // Clear image from CPU memory after upload