From: Dimitri Schoolwerth Date: Thu, 15 Apr 2004 16:16:01 +0000 (+0000) Subject: made GetAlpha(x, y) const (the docs are already correct) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d30ee785c216be96e1fdf0488d5891e93340700f made GetAlpha(x, y) const (the docs are already correct) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/image.h b/include/wx/image.h index 778de29404..91217cd666 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -198,7 +198,7 @@ public: unsigned char GetBlue( int x, int y ) const; void SetAlpha(int x, int y, unsigned char alpha); - unsigned char GetAlpha(int x, int y); + unsigned char GetAlpha(int x, int y) const; // find first colour that is not used in the image and has higher // RGB values than diff --git a/src/common/image.cpp b/src/common/image.cpp index a5f3c35f48..dbcff9c883 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -796,7 +796,7 @@ void wxImage::SetAlpha(int x, int y, unsigned char alpha) M_IMGDATA->m_alpha[y*w + x] = alpha; } -unsigned char wxImage::GetAlpha(int x, int y) +unsigned char wxImage::GetAlpha(int x, int y) const { wxCHECK_MSG( Ok() && HasAlpha(), 0, wxT("invalid image or no alpha channel") );