From dab80569a6ecbc5d439013bb6fa634efc1037826 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Thu, 25 Feb 2010 15:20:01 +0000 Subject: [PATCH] Resetting menu->mouse_state after changing a key in kconfig so you will not accidentially activate a new field when left mouse button is assigned --- CHANGELOG.txt | 1 + main/kconfig.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7ce62a374..2b47ea50b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,7 @@ D1X-Rebirth Changelog main/game.c, main/gamecntl.c, main/gameseq.c, main/state.c, main/state.h: Put fast save back, using Alt-F1 instead of F6 arch/sdl/key.c: Move call to callback outside of loop in key_handler, now deleting a second demo using CTRL-D actually works main/automap.c, main/game.c, main/gamecntl.c, main/gauges.c, main/kconfig.c, main/net_ipx.c, main/net_udp.c, main/newmenu.c, main/scores.c: Call game_flush_inputs for all windows' EVENT_WINDOW_ACTIVATED, so clicking on a pilot doesn't bring up the multiplayer screen for example +main/kconfig.c: Resetting menu->mouse_state after changing a key in kconfig so you will not accidentially activate a new field when left mouse button is assigned 20100224 -------- diff --git a/main/kconfig.c b/main/kconfig.c index aa469187f..10d96d9e7 100644 --- a/main/kconfig.c +++ b/main/kconfig.c @@ -613,6 +613,7 @@ int kconfig_idle(window *wind, d_event *event, kc_menu *menu) { gr_set_fontcolor( BM_XRGB(28,28,28), BM_XRGB(0,0,0) ); game_flush_inputs(); + menu->mouse_state = 0; return 1; } }