Reverted accidental change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -412,22 +412,8 @@ void MyFrame::PopulateToolbar(wxToolBarBase* toolBar)
|
|||||||
|
|
||||||
for ( size_t n = Tool_new; n < WXSIZEOF(toolBarBitmaps); n++ )
|
for ( size_t n = Tool_new; n < WXSIZEOF(toolBarBitmaps); n++ )
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
wxBitmap source = toolBarBitmaps[n];
|
|
||||||
wxBitmap target( w, h );
|
|
||||||
wxMemoryDC dc( target );
|
|
||||||
dc.SetPen( wxPen( wxColour(100,100,100), 1, wxSOLID ) );
|
|
||||||
dc.SetBrush( *wxTRANSPARENT_BRUSH );
|
|
||||||
dc.DrawRectangle( 0, 0, w, h );
|
|
||||||
wxRect inner(1,1,w-2,h-2);
|
|
||||||
dc.GradientFillLinear( inner, wxColour(240,240,240), wxColour(150,150,150), wxSOUTH );
|
|
||||||
|
|
||||||
dc.DrawBitmap( source, w/4, h/4, true );
|
|
||||||
toolBarBitmaps[n] = target;
|
|
||||||
#else
|
|
||||||
toolBarBitmaps[n] =
|
toolBarBitmaps[n] =
|
||||||
wxBitmap(toolBarBitmaps[n].ConvertToImage().Scale(w, h));
|
wxBitmap(toolBarBitmaps[n].ConvertToImage().Scale(w, h));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user