From 2aeec9ecccdb1b051848768f45a4ac1859ded5f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 11 Apr 2001 18:04:34 +0000 Subject: [PATCH] applied fix to fix BCC's wxBitmap ctor problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gdicmn.h | 2 +- include/wx/msw/bitmap.h | 2 +- src/msw/bitmap.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 0f98d1ffa4..82c55108c9 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -48,7 +48,7 @@ class WXDLLEXPORT wxString; // --------------------------------------------------------------------------- // Bitmap flags -enum +enum wxBitmapType { wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility! wxBITMAP_TYPE_BMP, diff --git a/include/wx/msw/bitmap.h b/include/wx/msw/bitmap.h index d96f86a163..2aab4a41ee 100644 --- a/include/wx/msw/bitmap.h +++ b/include/wx/msw/bitmap.h @@ -83,7 +83,7 @@ public: wxBitmap(char **data) { CreateFromXpm((const char **)data); } // Load a file or resource - wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_BMP_RESOURCE); + wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_BMP_RESOURCE); // New constructor for generalised creation from data wxBitmap(void *data, long type, int width, int height, int depth = 1); diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 6bc9f47356..0fe0be85c7 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -302,7 +302,7 @@ wxBitmap::wxBitmap(void *data, long type, int width, int height, int depth) (void)Create(data, type, width, height, depth); } -wxBitmap::wxBitmap(const wxString& filename, long type) +wxBitmap::wxBitmap(const wxString& filename, wxBitmapType type) { Init(); -- 2.45.2