aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/gl_gen_erl.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-03-06 12:21:51 +0100
committerDan Gudmundsson <[email protected]>2012-03-06 12:21:51 +0100
commit2738f881102a6c291c8fb1f2305677dba57fa87d (patch)
tree634e8bc7666af4b19f7baeabd474202bbefd2762 /lib/wx/api_gen/gl_gen_erl.erl
parentdf8cd79bef0ca7178efcda97401c892d24f920bc (diff)
downloadotp-2738f881102a6c291c8fb1f2305677dba57fa87d.tar.gz
otp-2738f881102a6c291c8fb1f2305677dba57fa87d.tar.bz2
otp-2738f881102a6c291c8fb1f2305677dba57fa87d.zip
[wx] Fix bad defines
Reported by Vlad Dumitrescu.
Diffstat (limited to 'lib/wx/api_gen/gl_gen_erl.erl')
-rw-r--r--lib/wx/api_gen/gl_gen_erl.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/wx/api_gen/gl_gen_erl.erl b/lib/wx/api_gen/gl_gen_erl.erl
index f77b2d8e24..25f89e4ad4 100644
--- a/lib/wx/api_gen/gl_gen_erl.erl
+++ b/lib/wx/api_gen/gl_gen_erl.erl
@@ -54,8 +54,10 @@ glu_defines(Defs) ->
gen_define(#def{name=N, val=Val, type=int}) ->
w("-define(~s, ~p).~n", [N,Val]);
+gen_define(#def{name=N, val=Val, type=float_str}) ->
+ w("-define(~s, ~s).~n", [N,Val]);
gen_define(#def{name=N, val=Val, type=hex}) ->
- w("-define(~s, ~.16#).~n", [N,Val]);
+ w("-define(~s, 16#~s).~n", [N,Val]);
gen_define(#def{name=N, val=Val, type=string}) ->
w("-define(~s, ?~s).~n", [N,Val]);
gen_define(#def{name="GLEXT_64_TYPES"++_, val=undefined, type=undefined}) ->