From 953ee650a80d863a85c99e82ef69501496db0ad6 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 13:55:08 +0100 Subject: [wx] Fix wxGraphicContext bugs * Lines had wrong arguments * Change float() to number in guards, when packing arguments integers are converted floats to automaticly anyway. --- lib/wx/c_src/gen/wxe_derived_dest.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/wx/c_src/gen/wxe_derived_dest.h') 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) {}; -- cgit v1.2.3