From d6538d44104be5184fe620f289b44342ffd31803 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Fri, 17 Apr 2026 01:46:47 +0900 Subject: [PATCH] fix --- include/Mw/Widget/Vulkan.h | 6 +++--- milsko.xml | 2 +- src/widget/vulkan.c | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/Mw/Widget/Vulkan.h b/include/Mw/Widget/Vulkan.h index ccfb024..0565022 100644 --- a/include/Mw/Widget/Vulkan.h +++ b/include/Mw/Widget/Vulkan.h @@ -111,11 +111,11 @@ 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. + * @note Consult the documentation for MwVULKANFIELD to know what type is expected for output. */ -MwInline void* MwVulkanGetField(MwWidget handle, int field, int* out) { +MwInline void* MwVulkanGetField(MwWidget handle, int field, int* err) { void* field_out; - MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, out); + MwVaWidgetExecute(handle, "mwVulkanGetField", &field_out, field, err); return field_out; } diff --git a/milsko.xml b/milsko.xml index 62fb422..5d7a637 100644 --- a/milsko.xml +++ b/milsko.xml @@ -822,7 +822,7 @@ - + diff --git a/src/widget/vulkan.c b/src/widget/vulkan.c index 0116cb9..1e67ea9 100644 --- a/src/widget/vulkan.c +++ b/src/widget/vulkan.c @@ -518,7 +518,7 @@ int MwVulkanSupported(void) { } }; -static void* mwVulkanGetFieldImpl(MwWidget handle, int field, int* out) { +static void* mwVulkanGetFieldImpl(MwWidget handle, int field, int* err) { vulkan_t* o = handle->internal; char buf[1024]; @@ -544,21 +544,21 @@ static void* mwVulkanGetFieldImpl(MwWidget handle, int field, int* out) { default: MwStringPrintIntoBuffer(buf, 1024, "Unknown vulkan field request (%d given)", field); MwDispatchError(1, buf); - if(out != NULL) { - *out = 1; + if(err != NULL) { + *err = 1; } return NULL; } - if(out != NULL) { - *out = 0; + if(err != NULL) { + *err = 0; } }; -static void func_handler(MwWidget handle, const char* name, void* out, va_list va) { +static void func_handler(MwWidget handle, const char* name, void* output, va_list va) { if(strcmp(name, "mwVulkanGetField") == 0) { int field = va_arg(va, int); int* err = va_arg(va, int*); - *(void**)out = mwVulkanGetFieldImpl(handle, field, err); + *(void**)output = mwVulkanGetFieldImpl(handle, field, err); } }