aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/DlgVideoSettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/DlgVideoSettings.cpp')
-rw-r--r--src/libui_sdl/DlgVideoSettings.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libui_sdl/DlgVideoSettings.cpp b/src/libui_sdl/DlgVideoSettings.cpp
index 69e5ac5..8749dc5 100644
--- a/src/libui_sdl/DlgVideoSettings.cpp
+++ b/src/libui_sdl/DlgVideoSettings.cpp
@@ -306,4 +306,11 @@ void Open()
uiControlShow(uiControl(win));
}
+void Close()
+{
+ if (!opened) return;
+ uiControlDestroy(uiControl(win));
+ opened = false;
+}
+
}