From cb7a9a70e9c04b972906013fd44dac86ec0b442e Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 4 Apr 2018 13:08:33 +0200 Subject: Add new "constants" to wxGLCanvas They can't be constants because the order differ between 3.0.3 and 3.1. So they must be looked up in runtime. --- lib/wx/api_gen/wx_gen.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/wx/api_gen/wx_gen.erl') diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl index ab70a588ab..4ba57501a5 100644 --- a/lib/wx/api_gen/wx_gen.erl +++ b/lib/wx/api_gen/wx_gen.erl @@ -93,9 +93,10 @@ mangle_info(E={not_const,List}) -> put(not_const, [atom_to_list(M) || M <- List]), E; mangle_info(E={gvars,List}) -> - A2L = fun({N,{T,C}}) -> {atom_to_list(N), {T,atom_to_list(C)}}; + A2L = fun({N,{test_if,C}}) -> {atom_to_list(N), {test_if,C}}; + ({N,{T,C}}) -> {atom_to_list(N), {T,atom_to_list(C)}}; ({N,C}) -> {atom_to_list(N), atom_to_list(C)} - end, + end, put(gvars, map(A2L,List)), E; mangle_info({class,CN,P,O,FL}) -> -- cgit v1.2.3