From 668bdd2d473f3bc60cee64e374a425de0d1b68b2 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 6 Apr 2011 04:00:24 +0200 Subject: CMPR textures fixed --- NW4RTools/Texture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NW4RTools') 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); -- cgit v1.2.3