From 4894d16219ecae8a16d88c8fdb3bbb2ee3726fd3 Mon Sep 17 00:00:00 2001 From: wowzaman12 Date: Sat, 28 Mar 2015 13:43:40 +0000 Subject: [PATCH] Change a macro from using a special wx funciton to the regular c++ one git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1270 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/cmdevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 88b7c84a..47b6c972 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -20,7 +20,7 @@ extern "C" { #include "../gba/agbprint.h" #define GetXRCDialog(n) \ - wxStaticCast(FindWindow(XRCID(n)), wxDialog) + dynamic_cast(FindWindow(XRCID(n))) bool cmditem_lt(const struct cmditem &cmd1, const struct cmditem &cmd2) {