optimisation (crash fix)

This commit is contained in:
2026-01-09 21:29:10 +01:00
parent 2025e78654
commit 4d0f380d25
2 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
namespace ctrff {
namespace Pica {
CTRFF_API void EncodeImage(std::vector<ctrff::u8>& ret,
std::vector<ctrff::u8> rgba, int w, int h,
const std::vector<ctrff::u8>& rgba, int w, int h,
Color dst_color) {
// Only used in rgb/rgba
int bpp = dst_color == RGBA8888 ? 4 : 3;
@@ -152,7 +152,7 @@ CTRFF_API void EncodeImage(std::vector<ctrff::u8>& ret,
}
CTRFF_API void DecodeImage(std::vector<ctrff::u8>& ret,
std::vector<ctrff::u8> pixels, int w, int h,
const std::vector<ctrff::u8>& pixels, int w, int h,
Color src_color) {
switch (src_color) {
case RGB565: