]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
Fix the off-by-one a little differently, and correct a refresh problem
[wxWidgets.git] / src / univ / winuniv.cpp
index d36c97fb753126abad2f6e386a7d7a52bef02d87..2a5b246c932ae2936ea21d8b46829291beb5e3e9 100644 (file)
@@ -211,7 +211,7 @@ const wxBitmap& wxWindow::GetBackgroundBitmap(int *alignment,
 // ----------------------------------------------------------------------------
 
 // the event handlers executed when the window must be repainted
 // ----------------------------------------------------------------------------
 
 // the event handlers executed when the window must be repainted
-void wxWindow::OnNcPaint(wxPaintEvent& WXUNUSED(event))
+void wxWindow::OnNcPaint(wxNcPaintEvent& WXUNUSED(event))
 {
     if ( m_renderer )
     {
 {
     if ( m_renderer )
     {
@@ -533,7 +533,7 @@ void wxWindow::OnSize(wxSizeEvent& event)
 #if 0   // ndef __WXMSW__
     // Refresh the area (strip) previously occupied by the border
 
 #if 0   // ndef __WXMSW__
     // Refresh the area (strip) previously occupied by the border
 
-    if (HasFlag( wxNO_FULL_REPAINT_ON_RESIZE ) && IsShown())
+    if ( !HasFlag(wxFULL_REPAINT_ON_RESIZE) && IsShown() )
     {
         // This code assumes that wxSizeEvent.GetSize() returns
         // the area of the entire window, not just the client
     {
         // This code assumes that wxSizeEvent.GetSize() returns
         // the area of the entire window, not just the client