Get shorter code with new wxRect constructor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -241,7 +241,7 @@ void wxListbook::OnSize(wxSizeEvent& event)
|
|||||||
#if wxUSE_LINE_IN_LISTBOOK
|
#if wxUSE_LINE_IN_LISTBOOK
|
||||||
if ( m_line )
|
if ( m_line )
|
||||||
{
|
{
|
||||||
wxRect rectLine(wxPoint(0, 0), sizeClient);
|
wxRect rectLine(sizeClient);
|
||||||
|
|
||||||
switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
|
switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
|
||||||
{
|
{
|
||||||
|
@@ -1429,7 +1429,7 @@ void wxWindowDC::Clear()
|
|||||||
{
|
{
|
||||||
wxCHECK_RET( Ok(), "invalid dc" );
|
wxCHECK_RET( Ok(), "invalid dc" );
|
||||||
|
|
||||||
wxRect rect( wxPoint( 0, 0 ), GetSize() );
|
wxRect rect( GetSize() );
|
||||||
Clear( rect );
|
Clear( rect );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user