bump oss-nvjpg version fdcaba8 -> 16c10a3 (fixes homebrew icon decoding).

This commit is contained in:
ITotalJustice
2025-06-10 20:23:37 +01:00
parent 6b77cbb0c0
commit c535b96b12
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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());