port: fix animated textures in Attack Ship

patch submitted by Ryan
This commit is contained in:
fgsfds committed 2023-08-22 19:48:22 +02:00
1 parent 5d4606d0f6
commit 35da8e2e67
1 file changed
+4 -4
+4 -4
View File
@@ -1832,9 +1832,9 @@ s32 texInflateLookupFromBuffer(u8 *src, s32 width, s32 height, u8 *dst, u8 *look
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
if (numcolours <= 256) { if (numcolours <= 256) {
dst16[x] = lookup16[src8[x]]; dst16[x] = PD_BE16(lookup16[src8[x]]);
} else { } else {
dst16[x] = lookup16[src16[x]]; dst16[x] = PD_BE16(lookup16[src16[x]]);
} }
} }
@@ -1848,9 +1848,9 @@ s32 texInflateLookupFromBuffer(u8 *src, s32 width, s32 height, u8 *dst, u8 *look
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) { for (x = 0; x < width; x++) {
if (numcolours <= 256) { if (numcolours <= 256) {
dst16[x] = lookup16[src8[x]] << 1 | 1; dst16[x] = PD_BE16(lookup16[src8[x]] << 1 | 1);
} else { } else {
dst16[x] = lookup16[src16[x]] << 1 | 1; dst16[x] = PD_BE16(lookup16[src16[x]] << 1 | 1);
} }
} }