From 05a07871792b601bbc4a5c1f68a2f298fcf4420b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 Jun 2003 18:47:53 +0000 Subject: [PATCH] Mac compilation warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/image/image.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/image/image.cpp b/samples/image/image.cpp index 734eadf90e..57d3897909 100644 --- a/samples/image/image.cpp +++ b/samples/image/image.cpp @@ -36,6 +36,7 @@ #endif #include "wx/rawbmp.h" +#define wxHAVE_RAW_BITMAP // derived classes @@ -284,7 +285,8 @@ public: p.Red() = r; p.Green() = g; p.Blue() = b; - p.Alpha() = (x*255.)/REAL_SIZE; + p.Alpha() = + (wxAlphaPixelFormat::ChannelType)((x*255.)/REAL_SIZE); ++p; // same as p.OffsetX(1) } -- 2.45.2