]> git.cworth.org Git - apitrace/commitdiff
Dump D3DMATRIX's contents.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 12 Sep 2009 09:19:10 +0000 (10:19 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 12 Sep 2009 09:19:10 +0000 (10:19 +0100)
base.py
d3d8types.py
d3d9types.py

diff --git a/base.py b/base.py
index 0d94daaa9a75e7eb869c6c2411584698484e1d1f..6fba4b39cc7800d94a0ed504553dba8b062aefc0 100644 (file)
--- a/base.py
+++ b/base.py
@@ -215,7 +215,7 @@ class Array(Type):
 
     def dump(self, instance):
         index = '__i' + self.type.id
-        print '    for (int %s; %s < %s; ++%s) {' % (index, index, self.length, index)
+        print '    for (int %s = 0; %s < %s; ++%s) {' % (index, index, self.length, index)
         print '        Log::BeginElement("%s");' % (self.type,)
         self.type.dump('(%s)[%s]' % (instance, index))
         print '        Log::EndElement();'
index 23bbe27797e537d79692bb7f06fc4920022f9336..53083db441a6dcac30eb5a6ba4d641ff6f68954d 100644 (file)
@@ -44,7 +44,7 @@ D3DRECT = Struct("D3DRECT", [
 ])
 
 D3DMATRIX = Struct("D3DMATRIX", [
-    (Float, "m[4][4]"),
+    (Array(Array(Float, "4"), "4"), "m"),
 ])
 
 D3DVIEWPORT8 = Struct("D3DVIEWPORT8", [
index 558c9331bb7e658373595612eeb8692e6538414b..c4f1bd2757fdae5c6a12eb4efef497165befc958 100644 (file)
@@ -44,7 +44,7 @@ D3DRECT = Struct("D3DRECT", [
 ])
 
 D3DMATRIX = Struct("D3DMATRIX", [
-    (Float, "m[4][4]"),
+    (Array(Array(Float, "4"), "4"), "m"),
 ])
 
 D3DVIEWPORT9 = Struct("D3DVIEWPORT9", [