GUI: Scale grid widget icons with filtering
This commit is contained in:
parent
261f012162
commit
57d0df273e
4 changed files with 5 additions and 8 deletions
|
@ -582,7 +582,7 @@ void GridWidget::reloadThumbnails() {
|
|||
if (!_loadedSurfaces.contains(entry->thumbPath)) {
|
||||
surf = loadSurfaceFromFile(entry->thumbPath);
|
||||
if (surf) {
|
||||
const Graphics::ManagedSurface *scSurf(scaleGfx(surf, _thumbnailWidth, 512));
|
||||
const Graphics::ManagedSurface *scSurf(scaleGfx(surf, _thumbnailWidth, 512, true));
|
||||
_loadedSurfaces[entry->thumbPath] = scSurf;
|
||||
surf->free();
|
||||
delete surf;
|
||||
|
@ -612,7 +612,7 @@ void GridWidget::loadPlatformIcons() {
|
|||
Common::String path = Common::String::format("icons/platforms/%s.png", l->code);
|
||||
Graphics::ManagedSurface *gfx = loadSurfaceFromFile(path);
|
||||
if (gfx) {
|
||||
const Graphics::ManagedSurface *scGfx = scaleGfx(gfx, _platformIconWidth, _platformIconHeight);
|
||||
const Graphics::ManagedSurface *scGfx = scaleGfx(gfx, _platformIconWidth, _platformIconHeight, true);
|
||||
_platformIcons[l->id] = scGfx;
|
||||
gfx->free();
|
||||
delete gfx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue