From 13a2db7fa85c57bc5d3426d73248ee58c4d24d1e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 17 Apr 2026 00:26:02 +0900 Subject: [PATCH] better for binding --- include/Mw/Widget/Vulkan.h | 2 +- milsko.xml | 6 +++--- src/widget/vulkan.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/Mw/Widget/Vulkan.h b/include/Mw/Widget/Vulkan.h index 217f0e5..4f8a5e3 100644 --- a/include/Mw/Widget/Vulkan.h +++ b/include/Mw/Widget/Vulkan.h @@ -113,7 +113,7 @@ typedef enum _MwVulkanField { * @brief Function for getting a field from within Vulkan. * @warning Consult the documentation for MwVulkanField to know what type is expected for out. */ -MwInline void* MwVulkanGetField(MwWidget handle, MwVulkanField field, int* out) { +MwInline void* MwVulkanGetField(MwWidget handle, int field, int* out) { void* field_out; MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, out); return field_out; diff --git a/milsko.xml b/milsko.xml index 2e522bd..253a4fe 100644 --- a/milsko.xml +++ b/milsko.xml @@ -419,14 +419,14 @@ - + - + @@ -770,7 +770,7 @@ - + diff --git a/src/widget/vulkan.c b/src/widget/vulkan.c index e871646..817644c 100644 --- a/src/widget/vulkan.c +++ b/src/widget/vulkan.c @@ -518,7 +518,7 @@ int MwVulkanSupported(void) { } }; -static void* mwVulkanGetFieldImpl(MwWidget handle, MwVulkanField field, int* out) { +static void* mwVulkanGetFieldImpl(MwWidget handle, int field, int* out) { vulkan_t* o = handle->internal; char buf[1024]; @@ -556,9 +556,9 @@ static void* mwVulkanGetFieldImpl(MwWidget handle, MwVulkanField field, int* out static void func_handler(MwWidget handle, const char* name, void* out, va_list va) { if(strcmp(name, "mwVulkanGetField") == 0) { - MwVulkanField field = va_arg(va, MwVulkanField); - int* err = va_arg(va, int*); - *(void**)out = mwVulkanGetFieldImpl(handle, field, err); + int field = va_arg(va, int); + int* err = va_arg(va, int*); + *(void**)out = mwVulkanGetFieldImpl(handle, field, err); } }