From c535b96b120ecbaf070bf67d730adcc16be15f61 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Tue, 10 Jun 2025 20:23:37 +0100 Subject: [PATCH] bump oss-nvjpg version fdcaba8 -> 16c10a3 (fixes homebrew icon decoding). --- sphaira/CMakeLists.txt | 2 +- sphaira/source/ui/menus/homebrew.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sphaira/CMakeLists.txt b/sphaira/CMakeLists.txt index 5880395..ad0c127 100644 --- a/sphaira/CMakeLists.txt +++ b/sphaira/CMakeLists.txt @@ -206,7 +206,7 @@ FetchContent_Declare(libnxtc FetchContent_Declare(nvjpg GIT_REPOSITORY https://github.com/averne/oss-nvjpg.git - GIT_TAG fdcaba8 + GIT_TAG 16c10a3 ) set(USE_NEW_ZSTD ON) diff --git a/sphaira/source/ui/menus/homebrew.cpp b/sphaira/source/ui/menus/homebrew.cpp index afaac7f..f2e85dc 100644 --- a/sphaira/source/ui/menus/homebrew.cpp +++ b/sphaira/source/ui/menus/homebrew.cpp @@ -192,7 +192,7 @@ void Menu::Draw(NVGcontext* vg, Theme* theme) { const auto icon = nro_get_icon(e.path, e.icon_size, e.icon_offset); TimeStamp ts; if (!icon.empty()) { - const auto image = ImageLoadFromMemory(icon, ImageFlag_None); + const auto image = ImageLoadFromMemory(icon, ImageFlag_JPEG); if (!image.data.empty()) { e.image = nvgCreateImageRGBA(vg, image.w, image.h, 0, image.data.data()); log_write("\t[image load] time taken: %.2fs %zums\n", ts.GetSecondsD(), ts.GetMs());