From 166cf446f7e5217cb262a7013e3856b5712f19a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ed=C3=AAnis=20Freindorfer=20Azevedo?= Date: Wed, 4 Mar 2020 19:45:03 -0300 Subject: [PATCH] Disable menu LCD filter unless playing GB or GBA. Since they share the filter function, but can change one from another (setting on the GBA would apply to GB and vice-versa), we allow only the proper setting to be toggled while a ROM is loaded. If GB ROM, then `Options` > `Game Boy` > `LCD Filter` is enabled. Likewise for GBA. If neither, then no option is enabled. --- src/wx/cmdevents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index bef5155d..b44078d1 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2883,7 +2883,7 @@ EVT_HANDLER(AGBPrinter, "Enable AGB printer") update_opts(); } -EVT_HANDLER(GBALcdFilter, "Enable LCD filter") +EVT_HANDLER_MASK(GBALcdFilter, "Enable LCD filter", CMDEN_GBA) { bool menuPress; GetMenuOptionBool("GBALcdFilter", menuPress); @@ -2893,7 +2893,7 @@ EVT_HANDLER(GBALcdFilter, "Enable LCD filter") update_opts(); } -EVT_HANDLER(GBLcdFilter, "Enable LCD filter") +EVT_HANDLER_MASK(GBLcdFilter, "Enable LCD filter", CMDEN_GB) { bool menuPress; GetMenuOptionBool("GBLcdFilter", menuPress);