From: Stefan Csomor Date: Tue, 25 Jun 2013 17:15:10 +0000 (+0000) Subject: adding default for Create with dc X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7f74897f7fd5f16824343f98fbe4a44771d83fa7?hp=b5ec0c78b521cfa0f276e4d5d830f35b4fa26e91 adding default for Create with dc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dfb/bitmap.h b/include/wx/dfb/bitmap.h index e7335658e5..974c2a7844 100644 --- a/include/wx/dfb/bitmap.h +++ b/include/wx/dfb/bitmap.h @@ -39,6 +39,8 @@ public: bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } + bool Create(int width, int height, const wxDC& WXUNUSED(dc)) + { return Create(width,height); } virtual int GetHeight() const; virtual int GetWidth() const; diff --git a/include/wx/gtk1/bitmap.h b/include/wx/gtk1/bitmap.h index 444b5ab700..fc287bd8b4 100644 --- a/include/wx/gtk1/bitmap.h +++ b/include/wx/gtk1/bitmap.h @@ -83,6 +83,8 @@ public: bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } + bool Create(int width, int height, const wxDC& WXUNUSED(dc)) + { return Create(width,height); } virtual int GetHeight() const; virtual int GetWidth() const; diff --git a/include/wx/os2/bitmap.h b/include/wx/os2/bitmap.h index 6069f28580..7051a8162d 100644 --- a/include/wx/os2/bitmap.h +++ b/include/wx/os2/bitmap.h @@ -166,6 +166,8 @@ public: ); virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } + virtual bool Create(int width, int height, const wxDC& WXUNUSED(dc)) + { return Create(width,height); } virtual bool Create( const void* pData ,wxBitmapType lType diff --git a/include/wx/x11/bitmap.h b/include/wx/x11/bitmap.h index 4553382bab..011a29a285 100644 --- a/include/wx/x11/bitmap.h +++ b/include/wx/x11/bitmap.h @@ -88,6 +88,8 @@ public: bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } + bool Create(int width, int height, const wxDC& WXUNUSED(dc)) + { return Create(width,height); } bool Create(const void* data, wxBitmapType type, int width, int height, int depth = -1);