Corrected m_depth assignment in CopyFromIcon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2005-01-11 15:07:02 +00:00
parent 68a8c89baa
commit b4918747ef

View File

@ -371,7 +371,7 @@ bool wxBitmap::CopyFromIcon(const wxIcon& icon)
M_BITMAPDATA->m_cocoaNSBitmapImageRep = newBitmapRep;
M_BITMAPDATA->m_width = [newBitmapRep pixelsWide];
M_BITMAPDATA->m_height = [newBitmapRep pixelsHigh];
M_BITMAPDATA->m_depth = [newBitmapRep bitsPerSample];
M_BITMAPDATA->m_depth = [newBitmapRep bitsPerSample]*[newBitmapRep samplesPerPixel];
M_BITMAPDATA->m_ok = true;
M_BITMAPDATA->m_numColors = 0;
M_BITMAPDATA->m_quality = 0;