summaryrefslogtreecommitdiff
path: root/NW4RTools/Texture.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-04-06 04:00:24 +0200
committerTreeki <treeki@gmail.com>2011-04-06 04:00:24 +0200
commit668bdd2d473f3bc60cee64e374a425de0d1b68b2 (patch)
tree88f1b0a9df0a9f86306a672a7bd3a976c000146b /NW4RTools/Texture.cs
parente9769ad02f7c8c892578e24d3001489263ece727 (diff)
downloadnw4rtools-668bdd2d473f3bc60cee64e374a425de0d1b68b2.tar.gz
nw4rtools-668bdd2d473f3bc60cee64e374a425de0d1b68b2.zip
CMPR textures fixed
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 e45555d..6124ed4 100644
--- a/NW4RTools/Texture.cs
+++ b/NW4RTools/Texture.cs
@@ -238,7 +238,7 @@ namespace NW4RTools {
for (int iBlockX = 0; iBlockX < 2; iBlockX++) {
var block = Util.NVDXT.compressDXT1a((Util.NVDXT.ARGBPixel*)bits.Scan0,
x + (iBlockX * 4), y + (iBlockY * 4),
- bits.Stride, bits.Height);
+ bits.Width, bits.Height);
data.WriteUInt16(block.Color0);
data.WriteUInt16(block.Color1);