X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77df51f4fb0822bedc13263af625d50c15ba7abc..75ce4cb180dfbe5f6ee1ad6927929b43d04edcd1:/include/wx/rawbmp.h diff --git a/include/wx/rawbmp.h b/include/wx/rawbmp.h index db4c014d15..d91754c879 100644 --- a/include/wx/rawbmp.h +++ b/include/wx/rawbmp.h @@ -164,7 +164,7 @@ typedef wxPixelFormat wxImagePixelFormat; #define wxPIXEL_FORMAT_ALPHA 3 #elif defined(__WXGTK__) - // Under GTK+ 2.X we use GdkPixbuf, which should be RGBA + // Under GTK+ 2.X we use GdkPixbuf, which is standard RGB or RGBA typedef wxPixelFormat wxNativePixelFormat; #define wxPIXEL_FORMAT_ALPHA 3 @@ -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; }