]> git.cworth.org Git - apitrace/blobdiff - specs/d3d8.py
Fix common HRESULT values.
[apitrace] / specs / d3d8.py
index 79177cf56b0dbbd726987c19d3b56d0dff301e09..41e640255f576bd6daa757fdfa58f97ffa211078 100644 (file)
@@ -29,8 +29,7 @@ from winapi import *
 from d3d8types import *
 from d3d8caps import *
 
-HRESULT = FakeEnum(HRESULT, [
-    "D3D_OK",
+HRESULT = MAKE_HRESULT(ok = "D3D_OK", errors = [
     "D3DERR_WRONGTEXTUREFORMAT",
     "D3DERR_UNSUPPORTEDCOLOROPERATION",
     "D3DERR_UNSUPPORTEDCOLORARG",