diff options
author | Daniel Borca <[email protected]> | 2004-10-29 13:25:44 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-10-29 13:25:44 +0000 |
commit | 03501e7a29138e030b43746dcc71781b9652a113 (patch) | |
tree | 17a339e1f7dfa70d0f5b4efb23fb33b3bd450f5d /src/mesa/main | |
parent | 7faf519233aaea368f0e5ea28fe35ff011ca9f15 (diff) |
decoder "width" parameter represents "stride-in-pixels"
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texcompress_fxt1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texcompress_fxt1.c b/src/mesa/main/texcompress_fxt1.c index ec7971e91f1..0528e01c20d 100644 --- a/src/mesa/main/texcompress_fxt1.c +++ b/src/mesa/main/texcompress_fxt1.c @@ -47,7 +47,7 @@ fxt1_encode (GLcontext *ctx, const void *source, int srcRowStride, void *dest, int destRowStride); void -fxt1_decode_1 (const void *texture, int width, +fxt1_decode_1 (const void *texture, int stride, int i, int j, unsigned char *rgba); @@ -1749,7 +1749,7 @@ fxt1_decode_1ALPHA (unsigned char *code, int t, unsigned char *rgba) void -fxt1_decode_1 (const void *texture, int width, +fxt1_decode_1 (const void *texture, int stride, /* in pixels */ int i, int j, unsigned char *rgba) { static void (*decode_1[]) (unsigned char *, int, unsigned char *) = { @@ -1764,7 +1764,7 @@ fxt1_decode_1 (const void *texture, int width, }; unsigned char *code = (unsigned char *)texture + - ((j / 4) * (width / 8) + (i / 8)) * 16; + ((j / 4) * (stride / 8) + (i / 8)) * 16; int mode = CC_SEL((unsigned long *)code, 125); int t = i & 7; |