diff --git a/examples/dxdemos/direct3d9.c b/examples/dxdemos/direct3d9.c index 47a2609..368d618 100644 --- a/examples/dxdemos/direct3d9.c +++ b/examples/dxdemos/direct3d9.c @@ -71,8 +71,8 @@ int main() { d3d9 = MwCreateWidget(MwDirect3D9Class, NULL, window, (1024 - 800) / 2, (768 - 600) / 2, 800, 600); - d3d = MwDirect3D9GetD3D(d3d9); - d3ddev = MwDirect3D9GetD3DDevice(d3d9); + d3d = MwDirect3D9GetDirect3D9(d3d9); + d3ddev = MwDirect3D9GetDirect3DDevice9(d3d9); d3ddev->lpVtbl->CreateVertexBuffer(d3ddev, 3 * sizeof(struct CUSTOMVERTEX), diff --git a/include/Mw/Widget/Direct3D9.h b/include/Mw/Widget/Direct3D9.h index f31e247..b6904d4 100644 --- a/include/Mw/Widget/Direct3D9.h +++ b/include/Mw/Widget/Direct3D9.h @@ -38,14 +38,14 @@ MWDECL MwClass MwDirect3D9Class; extern "C" { #endif -MwInline LPDIRECT3D9 MwDirect3D9GetD3D(MwWidget handle) { +MwInline LPDIRECT3D9 MwDirect3D9GetDirect3D9(MwWidget handle) { LPDIRECT3D9 out = NULL; - MwVaWidgetExecute(handle, "mwDirect3D9GetD3D9", &out, NULL); + MwVaWidgetExecute(handle, "mwDirect3D9GetDirect3D9", &out, NULL); return out; }; -MwInline LPDIRECT3DDEVICE9 MwDirect3D9GetD3DDevice(MwWidget handle) { +MwInline LPDIRECT3DDEVICE9 MwDirect3D9GetDirect3DDevice9(MwWidget handle) { LPDIRECT3DDEVICE9 out = NULL; - MwVaWidgetExecute(handle, "mwDirect3D9GetD3DDevice9", &out); + MwVaWidgetExecute(handle, "mwDirect3D9GetDirect3DDevice9", &out); return out; }; diff --git a/milsko.xml b/milsko.xml index 77ace6b..4b8a1ed 100644 --- a/milsko.xml +++ b/milsko.xml @@ -1075,12 +1075,12 @@ - + - + diff --git a/src/widget/direct3d9.c b/src/widget/direct3d9.c index da77041..4134786 100644 --- a/src/widget/direct3d9.c +++ b/src/widget/direct3d9.c @@ -69,10 +69,10 @@ static void func_handler_d3d9(MwWidget handle, const char* name, void* out, (void)va; - if(strcmp(name, "mwDirect3D9GetD3D9") == 0) { + if(strcmp(name, "mwDirect3D9GetDirect3D9") == 0) { *(LPDIRECT3D9*)out = o->d3d; } - if(strcmp(name, "mwDirect3D9GetD3DDevice9") == 0) { + if(strcmp(name, "mwDirect3D9GetDirect3DDevice9") == 0) { *(LPDIRECT3DDEVICE9*)out = o->d3ddev; } }