Fix setting color depth of wxBitmap created from HBITMAP
When HBITMAP is assigned to wxBitmap with SetHBITMAP(), internal data member representing wxBitmap's color depth should be set afterwards to the bitmap color depth, not to the number of planes.
This commit is contained in:
@@ -478,7 +478,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len)
|
||||
wxBM->SetHBITMAP((WXHBITMAP) hNewBitmap);
|
||||
wxBM->SetWidth(bm.bmWidth);
|
||||
wxBM->SetHeight(bm.bmHeight);
|
||||
wxBM->SetDepth(bm.bmPlanes);
|
||||
wxBM->SetDepth(bm.bmBitsPixels);
|
||||
retval = wxBM;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user