X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065fa73213c49c01489cf6c44f788c7486cf4f8d..687b91d266990129fbbb8c21d92fa4298b458352:/include/wx/rawbmp.h diff --git a/include/wx/rawbmp.h b/include/wx/rawbmp.h index f9a8df2ab7..d91754c879 100644 --- a/include/wx/rawbmp.h +++ b/include/wx/rawbmp.h @@ -164,8 +164,8 @@ typedef wxPixelFormat wxImagePixelFormat; #define wxPIXEL_FORMAT_ALPHA 3 #elif defined(__WXGTK__) - // Under GTK+ 2.X we use GdkPixbuf, which should be RGBA - typedef wxPixelFormat wxNativePixelFormat; + // Under GTK+ 2.X we use GdkPixbuf, which is standard RGB or RGBA + typedef wxPixelFormat wxNativePixelFormat; #define wxPIXEL_FORMAT_ALPHA 3 #endif @@ -520,6 +520,12 @@ struct wxPixelDataOut bmp.GetRawData(data, PixelFormat::BitsPerPixel); } + // default constructor + Iterator() + { + m_ptr = NULL; + } + // return true if this iterator is valid bool IsOk() const { return m_ptr != NULL; }