summaryrefslogtreecommitdiff
path: root/src/setup/txt_mouseinput.c
diff options
context:
space:
mode:
authorSimon Howard2011-10-20 22:00:46 +0000
committerSimon Howard2011-10-20 22:00:46 +0000
commit31a58552ffc647d2c87b557441d3725c6fba2b37 (patch)
tree093cf65027a121ddcf927fa772e503a6f502c545 /src/setup/txt_mouseinput.c
parentabfc7bfe709000c1ca82654b64e6b43d3e06308a (diff)
downloadchocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.tar.gz
chocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.tar.bz2
chocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.zip
Use TXT_MessageBox where appropriate.
Subversion-branch: /branches/v2-branch Subversion-revision: 2446
Diffstat (limited to 'src/setup/txt_mouseinput.c')
-rw-r--r--src/setup/txt_mouseinput.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/setup/txt_mouseinput.c b/src/setup/txt_mouseinput.c
index c3e17299..c45bdc2e 100644
--- a/src/setup/txt_mouseinput.c
+++ b/src/setup/txt_mouseinput.c
@@ -56,21 +56,11 @@ static int MousePressCallback(txt_window_t *window,
static void OpenPromptWindow(txt_mouse_input_t *mouse_input)
{
txt_window_t *window;
- txt_label_t *label;
// Silently update when the shift key is held down.
mouse_input->check_conflicts = !TXT_GetModifierState(TXT_MOD_SHIFT);
- window = TXT_NewWindow(NULL);
- TXT_SetWindowAction(window, TXT_HORIZ_LEFT, NULL);
- TXT_SetWindowAction(window, TXT_HORIZ_CENTER,
- TXT_NewWindowAbortAction(window));
- TXT_SetWindowAction(window, TXT_HORIZ_RIGHT, NULL);
-
- label = TXT_NewLabel("Press the new mouse button...");
-
- TXT_AddWidget(window, label);
- TXT_SetWidgetAlign(label, TXT_HORIZ_CENTER);
+ window = TXT_MessageBox(NULL, "Press the new mouse button...");
TXT_SetMouseListener(window, MousePressCallback, mouse_input);
}