GUI: Scale grid widget icons with filtering

This commit is contained in:
SupSuper 2022-02-22 17:00:19 +00:00
parent 261f012162
commit 57d0df273e
4 changed files with 5 additions and 8 deletions

View file

@ -543,7 +543,7 @@ void DropdownButtonWidget::drawWidget() {
#pragma mark -
const Graphics::ManagedSurface *scaleGfx(const Graphics::ManagedSurface *gfx, int w, int h) {
const Graphics::ManagedSurface *scaleGfx(const Graphics::ManagedSurface *gfx, int w, int h, bool filtering) {
int nw = w, nh = h;
// Maintain aspect ratio
@ -563,7 +563,7 @@ const Graphics::ManagedSurface *scaleGfx(const Graphics::ManagedSurface *gfx, in
Graphics::ManagedSurface tmp(*gfx);
const Graphics::ManagedSurface *tmp2 = new Graphics::ManagedSurface(tmp.surfacePtr()->scale(w, h, false));
const Graphics::ManagedSurface *tmp2 = new Graphics::ManagedSurface(tmp.surfacePtr()->scale(w, h, filtering));
tmp.free();
return tmp2;