static inline size_t
-_getLockSize(IDirect3DVolume9 *pVolume, const D3DLOCKED_BOX *pLockedBox, const D3DBOX *pBox) {
+_getLockSize(IDirect3DVolume9 *pVolume, const D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox) {
HRESULT hr;
D3DVOLUME_DESC Desc;
Depth = Desc.Depth;
}
- return _getLockSize(Desc.Format, Width, Height, pLockedBox->RowPitch, Depth, pLockedBox->SlicePitch);
+ return _getLockSize(Desc.Format, Width, Height, pLockedVolume->RowPitch, Depth, pLockedVolume->SlicePitch);
}
static inline size_t
-_getLockSize(IDirect3DVolumeTexture9 *pTexture, UINT Level, const D3DLOCKED_BOX *pLockedBox, const D3DBOX *pBox) {
+_getLockSize(IDirect3DVolumeTexture9 *pTexture, UINT Level, const D3DLOCKED_BOX *pLockedVolume, const D3DBOX *pBox) {
HRESULT hr;
D3DVOLUME_DESC Desc;
Depth = Desc.Depth;
}
- return _getLockSize(Desc.Format, Width, Height, pLockedBox->RowPitch, Depth, pLockedBox->SlicePitch);
+ return _getLockSize(Desc.Format, Width, Height, pLockedVolume->RowPitch, Depth, pLockedVolume->SlicePitch);
}
DllTracer.implementWrapperInterfaceMethodBody(self, interface, base, method)
- if method.name in ('Lock', 'LockRect', 'LockedBox'):
+ if method.name in ('Lock', 'LockRect', 'LockBox'):
print ' if (SUCCEEDED(_result) && !(Flags & D3DLOCK_READONLY)) {'
print ' _LockedSize = _getLockSize(_this, %s);' % ', '.join(method.argNames()[:-1])
if method.name == 'Lock':
elif method.name == 'LockRect':
print ' m_pbData = pLockedRect->pBits;'
elif method.name == 'LockBox':
- print ' m_pbData = pLockedBox->pBits;'
+ print ' m_pbData = pLockedVolume->pBits;'
else:
raise NotImplementedError
print ' } else {'