summaryrefslogtreecommitdiffstats
path: root/tools/platform/window.h
diff options
context:
space:
mode:
authorSimon Kallweit <simon.kallweit@gmail.com>2024-02-27 00:32:03 +0100
committerGitHub <noreply@github.com>2024-02-26 15:32:03 -0800
commit4f03eb9d657fd74da341bb2b0d391c6b855073af (patch)
treebd091ec05b0878f92757de8b3ac011b856be9a33 /tools/platform/window.h
parentceb87b25b387411dbb7978caf04ecd9e948493e3 (diff)
switch to vkCreateMetalSurfaceEXT and create metal layer in swapchain (#3627)
* switch to vkCreateMetalSurfaceEXT and create metal layer in swapchain * fix window content size on macos --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/platform/window.h')
-rw-r--r--tools/platform/window.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/platform/window.h b/tools/platform/window.h
index 7f78b8af9..efbe139a7 100644
--- a/tools/platform/window.h
+++ b/tools/platform/window.h
@@ -97,7 +97,7 @@ struct WindowHandle
{
Unknown,
Win32Handle,
- NSViewHandle,
+ NSWindowHandle,
XLibHandle,
};
Type type;
@@ -109,11 +109,11 @@ struct WindowHandle
handle.handleValues[0] = (intptr_t)(hwnd);
return handle;
}
- static WindowHandle fromNSView(void* nsview)
+ static WindowHandle fromNSWindow(void* nswindow)
{
WindowHandle handle = {};
- handle.type = WindowHandle::Type::NSViewHandle;
- handle.handleValues[0] = (intptr_t)(nsview);
+ handle.type = WindowHandle::Type::NSWindowHandle;
+ handle.handleValues[0] = (intptr_t)(nswindow);
return handle;
}
static WindowHandle fromXWindow(void* xdisplay, uint32_t xwindow)