]> git.cworth.org Git - apitrace/blobdiff - specs/d3d.py
Fix common HRESULT values.
[apitrace] / specs / d3d.py
index 2a02afd61e559e44e8bc0afd4295dc8d7643e729..ca1155167418a62b51b37b464f98130b9511bcd1 100644 (file)
@@ -48,8 +48,7 @@ d3ddpFlags = Flags(DWORD, [
     "D3DDP_DONOTLIGHT",
 ])
 
-HRESULT = FakeEnum(HRESULT, [
-    "D3D_OK",
+HRESULT = MAKE_HRESULT(ok = "D3D_OK", errors = [
     "D3DERR_BADMAJORVERSION",
     "D3DERR_BADMINORVERSION",
     "D3DERR_INVALID_DEVICE",