Add LZ11 Decompression

- Add getetrs for bclim
- Correctly load all bclim data
- Fix RGB565ToRGBA converter to support all sizes possible
This commit is contained in:
2026-01-03 01:54:30 +01:00
parent 866acf32e0
commit e4fa2202d2
6 changed files with 69 additions and 12 deletions

View File

@@ -30,9 +30,9 @@ CTRFF_API ctrff::u32 ctrff::TileIndex(const int &x, const int &y,
CTRFF_API void ctrff::RGB565toRGBA(std::vector<ctrff::u8> &img,
ctrff::u16 *icon, const int &w,
const int &h) {
if (img.size() != (48 * 48 * 4)) {
img.resize(48 * 48 * 4);
if (img.size() != (w * h * 4)) {
img.clear();
img.resize(w * h * 4);
}
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {