mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-07 16:31:08 +00:00
call the correct read functions for 32 bit rle expansion
This commit is contained in:
parent
32257923a5
commit
c525bc4925
1 changed files with 4 additions and 4 deletions
|
@ -242,7 +242,7 @@ do { \
|
||||||
pixcol = pixrow; \
|
pixcol = pixrow; \
|
||||||
pixrow += span; \
|
pixrow += span; \
|
||||||
if (rows-- <= 0) \
|
if (rows-- <= 0) \
|
||||||
goto done_##expand; \
|
goto done_##expand; \
|
||||||
} \
|
} \
|
||||||
column -= packetSize; \
|
column -= packetSize; \
|
||||||
if (packetHeader & 0x80) { /* run-length packet */ \
|
if (packetHeader & 0x80) { /* run-length packet */ \
|
||||||
|
@ -253,7 +253,7 @@ do { \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
done_##expand:; \
|
done_##expand:; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -285,9 +285,9 @@ decode_truecolor_32_rle (TargaHeader *targa, tex_t *tex, byte *dataByte)
|
||||||
setup_pixrow_span (targa, tex, &pixrow, &span);
|
setup_pixrow_span (targa, tex, &pixrow, &span);
|
||||||
|
|
||||||
if (targa->attributes & 0x10)
|
if (targa->attributes & 0x10)
|
||||||
rle_expand (reverse_read_bgr);
|
rle_expand (reverse_read_bgra);
|
||||||
else
|
else
|
||||||
rle_expand (read_bgr);
|
rle_expand (read_bgra);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tex_s *
|
struct tex_s *
|
||||||
|
|
Loading…
Reference in a new issue