summaryrefslogtreecommitdiff
path: root/NW4RTools/Texture.cs
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-03 22:01:38 +0100
committerTreeki <treeki@gmail.com>2011-03-03 22:01:38 +0100
commita5b6dc1789f2e06a26fe6a0510aee04aeccdc70b (patch)
tree15065b84de58b2db03527da76b32f9b4b3c23c98 /NW4RTools/Texture.cs
parentb28711d999c86c40a11f61846ab15685c2fc172b (diff)
downloadnw4rtools-a5b6dc1789f2e06a26fe6a0510aee04aeccdc70b.tar.gz
nw4rtools-a5b6dc1789f2e06a26fe6a0510aee04aeccdc70b.zip
tidying up a bit, also it compiles now
Diffstat (limited to 'NW4RTools/Texture.cs')
-rw-r--r--NW4RTools/Texture.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NW4RTools/Texture.cs b/NW4RTools/Texture.cs
index 3dadce8..e45555d 100644
--- a/NW4RTools/Texture.cs
+++ b/NW4RTools/Texture.cs
@@ -236,7 +236,7 @@ namespace NW4RTools {
for (int x = 0; x < width; x += 8) {
for (int iBlockY = 0; iBlockY < 2; iBlockY++) {
for (int iBlockX = 0; iBlockX < 2; iBlockX++) {
- var block = Util.NVDXT.compressDXT1a(bits.Scan0,
+ var block = Util.NVDXT.compressDXT1a((Util.NVDXT.ARGBPixel*)bits.Scan0,
x + (iBlockX * 4), y + (iBlockY * 4),
bits.Stride, bits.Height);