7382e99bbb
It seems wrong to just fail to create the bitmap entirely if a not wxMSWDCImpl-derived wxDC is provided to wxBitmap::Create(size, wxDC) overload, especially because no check is done to see if the associated HDC is non-null for wxMSWDCImpl-derived classes. Instead, simply create a DIB-based bitmap with the specified size, as this seems more useful and less surprising and was already the behaviour in the other ports. Add a test ensuring that this remains the case in the future. |
||
---|---|---|
.. | ||
affinematrix.cpp | ||
bitmap.cpp | ||
bmpbundle.cpp | ||
boundingbox.cpp | ||
clippingbox.cpp | ||
colour.cpp | ||
coords.cpp | ||
ellipsization.cpp | ||
graphbitmap.cpp | ||
graphmatrix.cpp | ||
graphpath.cpp | ||
imagelist.cpp | ||
measuring.cpp |