summaryrefslogtreecommitdiff
path: root/tools/graphics-app-framework/windows/win-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/graphics-app-framework/windows/win-window.cpp')
-rw-r--r--tools/graphics-app-framework/windows/win-window.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/graphics-app-framework/windows/win-window.cpp b/tools/graphics-app-framework/windows/win-window.cpp
index 45315a27a..7433603cb 100644
--- a/tools/graphics-app-framework/windows/win-window.cpp
+++ b/tools/graphics-app-framework/windows/win-window.cpp
@@ -293,6 +293,12 @@ Window* createWindow(WindowDesc const& desc)
return window;
}
+void destroyWindow(Window* window)
+{
+ DestroyWindow(window->handle);
+ delete window;
+}
+
void showWindow(Window* window)
{
ShowWindow(window->handle, SW_SHOW);