]> git.saurik.com Git - wxWidgets.git/commitdiff
Get shorter code with new wxRect constructor.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 Nov 2004 19:54:24 +0000 (19:54 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 Nov 2004 19:54:24 +0000 (19:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listbkg.cpp
src/motif/dcclient.cpp

index 3b10666dcb6a19e797a3796450e03b817ed09067..3fc2953c171a210bb576084b2461057329bd175d 100644 (file)
@@ -241,7 +241,7 @@ void wxListbook::OnSize(wxSizeEvent& event)
 #if wxUSE_LINE_IN_LISTBOOK
     if ( m_line )
     {
-        wxRect rectLine(wxPoint(0, 0), sizeClient);
+        wxRect rectLine(sizeClient);
 
         switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
         {
index 4bbab04ceac20b6ab37bc288ff216abf39a47f79..5881afe59e4445cb4f42daed2861b15348ceecd1 100644 (file)
@@ -1429,7 +1429,7 @@ void wxWindowDC::Clear()
 {
     wxCHECK_RET( Ok(), "invalid dc" );
 
-    wxRect rect( wxPoint( 0, 0 ), GetSize() );
+    wxRect rect( GetSize() );
     Clear( rect );
 }