diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2012-11-11 00:39:53 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2012-11-11 00:39:53 +0000 |
commit | 2b4fc3f4c1204f190f9b7b264d68912d3a49d80d (patch) | |
tree | 448fd177c8a56d94a735fdbeea35901145de8590 /retrace/d3d9retrace.py | |
parent | a6f9409e53015ef67951eea651f9c0b80e954e9a (diff) |
d3dretrace: Eliminate differences between d3d9/d3d10.
Diffstat (limited to 'retrace/d3d9retrace.py')
-rw-r--r-- | retrace/d3d9retrace.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/retrace/d3d9retrace.py b/retrace/d3d9retrace.py index c175705e..fd265ca5 100644 --- a/retrace/d3d9retrace.py +++ b/retrace/d3d9retrace.py @@ -36,7 +36,7 @@ class D3DRetracer(Retracer): def retraceModule(self, api): print '// Swizzling mapping for lock addresses' - print 'static std::map<void *, void *> _locks;' + print 'static std::map<void *, void *> _maps;' print self.table_name = 'd3dretrace::d3d_callbacks' @@ -99,13 +99,13 @@ class D3DRetracer(Retracer): if method.name in ('Lock', 'LockRect', 'LockBox'): print ' VOID *_pbData = NULL;' - print ' size_t _LockedSize = 0;' - print ' _getLockInfo(_this, %s, _pbData, _LockedSize);' % ', '.join(method.argNames()[:-1]) - print ' _locks[_this] = _pbData;' + print ' size_t _MappedSize = 0;' + print ' _getMapInfo(_this, %s, _pbData, _MappedSize);' % ', '.join(method.argNames()[:-1]) + print ' _maps[_this] = _pbData;' if method.name in ('Unlock', 'UnlockRect', 'UnlockBox'): print ' VOID *_pbData = 0;' - print ' _pbData = _locks[_this];' + print ' _pbData = _maps[_this];' print ' if (_pbData) {' print ' retrace::delRegionByPointer(_pbData);' print ' }' |