fix nvjpg icon loading if w*bpp != pitch. add build option to enable/disable nvjpg (for testing).

This commit is contained in:
ITotalJustice
2025-06-03 02:16:23 +01:00
parent 7a83269d98
commit e88ca8ede1
4 changed files with 52 additions and 14 deletions

View File

@@ -10,7 +10,9 @@
#include "fs.hpp"
#include "log.hpp"
#ifdef USE_NVJPG
#include <nvjpg.hpp>
#endif
#include <switch.h>
#include <vector>
#include <string>
@@ -273,7 +275,9 @@ public:
PLSR_PlayerSoundId m_sound_ids[SoundEffect_MAX]{};
#ifdef USE_NVJPG
nj::Decoder m_decoder;
#endif
private: // from nanovg decko3d example by adubbz
static constexpr unsigned NumFramebuffers = 2;