disable nvjpg for homebrew menu (for now).

see https://github.com/averne/oss-nvjpg/issues/1.
This commit is contained in:
ITotalJustice
2025-06-02 23:09:31 +01:00
parent 4be1d48215
commit 7a83269d98

View File

@@ -178,7 +178,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_JPEG);
const auto image = ImageLoadFromMemory(icon, ImageFlag_None);
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());