aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-12-13 12:00:52 +0100
committerDan Gudmundsson <[email protected]>2018-12-13 12:00:52 +0100
commit3116b656c70a3bc623704c28cf6e3b9c1e075bad (patch)
tree127b3d6c35b5be3a0e6de4387809f7363a96a9a1 /lib/wx/api_gen/wx_gen.erl
parent3fedd4fa16e9d4cd27085e0dcf4154a301713566 (diff)
downloadotp-3116b656c70a3bc623704c28cf6e3b9c1e075bad.tar.gz
otp-3116b656c70a3bc623704c28cf6e3b9c1e075bad.tar.bz2
otp-3116b656c70a3bc623704c28cf6e3b9c1e075bad.zip
wx: Add wxDisplay
Have been around since 2.6 but undocumented, add it since it is useful in multi-display setup.
Diffstat (limited to 'lib/wx/api_gen/wx_gen.erl')
-rw-r--r--lib/wx/api_gen/wx_gen.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/wx/api_gen/wx_gen.erl b/lib/wx/api_gen/wx_gen.erl
index cec6ac9ccf..8a00498319 100644
--- a/lib/wx/api_gen/wx_gen.erl
+++ b/lib/wx/api_gen/wx_gen.erl
@@ -701,8 +701,13 @@ parse_type2(["wxe_cb"|R],Info,Opts, T) ->
parse_type2(R,Info,Opts,T#type{name=int,base=wxe_cb});
parse_type2([const|R],Info,Opts,T=#type{mod=Mod}) ->
parse_type2(R,Info,Opts,T#type{mod=[const|Mod]});
-parse_type2(["unsigned"|R],Info,Opts,T=#type{mod=Mod}) ->
- parse_type2(R,Info,Opts,T#type{mod=[unsigned|Mod]});
+parse_type2(["unsigned"|R],Info,Opts,T=#type{mod=Mod}) ->
+ case T#type.base of
+ undefined ->
+ parse_type2(R,Info,Opts,T#type{name=int, base=int, mod=[unsigned|Mod]});
+ _ ->
+ parse_type2(R,Info,Opts,T#type{mod=[unsigned|Mod]})
+ end;
parse_type2(["int"|R],Info,Opts, T) ->
parse_type2(R,Info,Opts,T#type{name=int,base=int});
parse_type2(["wxByte"|R],Info,Opts, T) ->