aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/DlgInputConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/DlgInputConfig.cpp')
-rw-r--r--src/libui_sdl/DlgInputConfig.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libui_sdl/DlgInputConfig.cpp b/src/libui_sdl/DlgInputConfig.cpp
index 513bd90..98cdf8c 100644
--- a/src/libui_sdl/DlgInputConfig.cpp
+++ b/src/libui_sdl/DlgInputConfig.cpp
@@ -450,5 +450,13 @@ void Open(int type)
uiControlShow(uiControl(dlg->win));
}
+void Close(int type)
+{
+ if (openedmask & (1<<type))
+ uiControlDestroy(uiControl(inputdlg[type].win));
+
+ openedmask &= ~(1<<type);
+}
+
}