X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b69f1bd1862481d4c10ca2c67e871ff5642ae2ee..f377a3b58c509ceba8c9335dbe45d100cca615ad:/src/generic/sashwin.cpp diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index b0b0c19a6d..bcc734ffd9 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -8,7 +8,7 @@ // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -26,6 +26,10 @@ #include "wx/wx.h" #endif +#if !wxUSE_SASH + #error "Thisfile requires wxUSE_SASH to be defined." +#endif // wxUSE_SASH + #include #include @@ -113,7 +117,8 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) // reset the cursor #ifdef __WXMOTIF__ SetCursor(* wxSTANDARD_CURSOR); -#else +#endif +#ifdef __WXMSW__ SetCursor(wxCursor()); #endif @@ -515,7 +520,7 @@ void wxSashWindow::DrawSashTracker(wxSashEdgePosition edge, int x, int y) wxPen sashTrackerPen(*wxBLACK, 2, wxSOLID); - screenDC.SetLogicalFunction(wxXOR); + screenDC.SetLogicalFunction(wxINVERT); screenDC.SetPen(sashTrackerPen); screenDC.SetBrush(*wxTRANSPARENT_BRUSH);