Cleaned up some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -90,17 +90,17 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
|
||||
// JACS 11/12/98: disabling this since the Forty Thieves sample
|
||||
// shows this not working properly. In fact, if loading from a resource,
|
||||
// the depth should become the screen depth, so why was it being called?
|
||||
if (0)
|
||||
{
|
||||
// Make a new bitmap that has the correct depth.
|
||||
wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
|
||||
|
||||
m_selectedBitmap = newBitmap ;
|
||||
}
|
||||
else
|
||||
{
|
||||
// if (0)
|
||||
// {
|
||||
// // Make a new bitmap that has the correct depth.
|
||||
// wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
|
||||
//
|
||||
// m_selectedBitmap = newBitmap ;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
m_selectedBitmap = bitmap;
|
||||
}
|
||||
// }
|
||||
|
||||
if (!m_selectedBitmap.Ok())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user