diff options
author | Dan Gudmundsson <[email protected]> | 2012-02-16 13:55:08 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-02-17 10:19:45 +0100 |
commit | 953ee650a80d863a85c99e82ef69501496db0ad6 (patch) | |
tree | 637e728152ec48479bc06275e0976250c47a1d23 /lib/wx/c_src/gen/wxe_derived_dest.h | |
parent | 2e3260f90ce4cb595296a36fbd212578e10a7e94 (diff) | |
download | otp-953ee650a80d863a85c99e82ef69501496db0ad6.tar.gz otp-953ee650a80d863a85c99e82ef69501496db0ad6.tar.bz2 otp-953ee650a80d863a85c99e82ef69501496db0ad6.zip |
[wx] Fix wxGraphicContext bugs
* Lines had wrong arguments
* Change float() to number in guards, when packing arguments
integers are converted floats to automaticly anyway.
Diffstat (limited to 'lib/wx/c_src/gen/wxe_derived_dest.h')
-rw-r--r-- | lib/wx/c_src/gen/wxe_derived_dest.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/wx/c_src/gen/wxe_derived_dest.h b/lib/wx/c_src/gen/wxe_derived_dest.h index 4e4aea098d..8eac5bb62f 100644 --- a/lib/wx/c_src/gen/wxe_derived_dest.h +++ b/lib/wx/c_src/gen/wxe_derived_dest.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2011. All Rights Reserved. + * Copyright Ericsson AB 2008-2012. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -129,6 +129,14 @@ class EwxBufferedPaintDC : public wxBufferedPaintDC { EwxBufferedPaintDC(wxWindow * window,int style) : wxBufferedPaintDC(window,style) {}; }; +class EwxGraphicsObject : public wxGraphicsObject { + public: ~EwxGraphicsObject() {((WxeApp *)wxTheApp)->clearPtr(this);}; +}; + +class EwxGraphicsContext : public wxGraphicsContext { + public: ~EwxGraphicsContext() {((WxeApp *)wxTheApp)->clearPtr(this);}; +}; + class EwxMenuBar : public wxMenuBar { public: ~EwxMenuBar() {((WxeApp *)wxTheApp)->clearPtr(this);}; EwxMenuBar(long style) : wxMenuBar(style) {}; |