bump oss-nvjpg version fdcaba8 -> 16c10a3 (fixes homebrew icon decoding).
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user