From 7f74897f7fd5f16824343f98fbe4a44771d83fa7 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 25 Jun 2013 17:15:10 +0000 Subject: [PATCH] adding default for Create with dc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dfb/bitmap.h | 2 ++ include/wx/gtk1/bitmap.h | 2 ++ include/wx/os2/bitmap.h | 2 ++ include/wx/x11/bitmap.h | 2 ++ 4 files changed, 8 insertions(+) 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); -- 2.45.2