summaryrefslogtreecommitdiff
path: root/NW4RTools/Texture.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-06-06 16:36:10 +0200
committerTreeki <treeki@gmail.com>2011-06-06 16:36:10 +0200
commitb6b5c13c09d9a70ad2a106660bf124e7cde71265 (patch)
treeef9ebe6f7d680399a151ac8d23572fb3bc758724 /NW4RTools/Texture.cs
parent1a58d8c31756fc986b993046d707d97168648510 (diff)
downloadnw4rtools-b6b5c13c09d9a70ad2a106660bf124e7cde71265.tar.gz
nw4rtools-b6b5c13c09d9a70ad2a106660bf124e7cde71265.zip
how did this bug stay around for so long
Diffstat (limited to '')
-rw-r--r--NW4RTools/Texture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NW4RTools/Texture.cs b/NW4RTools/Texture.cs
index 6124ed4..a328648 100644
--- a/NW4RTools/Texture.cs
+++ b/NW4RTools/Texture.cs
@@ -308,7 +308,7 @@ namespace NW4RTools {
} else if (format == TextureFormat.RGB5A3) {
ushort val = data.ReadUInt16();
if ((val & 0x8000) == 0) {
- uint a = (uint)(val & 0x7000) >> 3;
+ uint a = (uint)(val & 0x7000) >> 7;
uint r = (uint)(val & 0xF00) >> 4;
uint g = (uint)(val & 0xF0);
uint b = (uint)(val & 0xF) << 4;