X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..6535170f3d2afff6d4e5eeb5358e8613b5165281:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index d4190e23fb..5577bb37fd 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -50,7 +50,7 @@ #if wxUSE_FFILE #include "wx/ffile.h" #elif wxUSE_FILE - #include "wx/ffile.h" + #include "wx/file.h" #endif #ifdef __WXGTK__ @@ -4433,7 +4433,7 @@ wxStyledTextCtrl::DoLoadFile(const wxString& filename, int WXUNUSED(fileType)) if ( file.IsOpened() ) { wxString text; - if ( file.ReadAll(&text, *wxConvCurrent) ) + if ( file.ReadAll(&text, wxConvAuto()) ) { // Detect the EOL: we use just the first line because there is not // much we can do if the file uses inconsistent EOLs anyhow, we'd @@ -4695,9 +4695,11 @@ void wxStyledTextCtrl::OnContextMenu(wxContextMenuEvent& evt) { void wxStyledTextCtrl::OnMouseWheel(wxMouseEvent& evt) { - m_swx->DoMouseWheel(evt.GetWheelRotation(), + m_swx->DoMouseWheel(evt.GetWheelAxis(), + evt.GetWheelRotation(), evt.GetWheelDelta(), evt.GetLinesPerAction(), + evt.GetColumnsPerAction(), evt.ControlDown(), evt.IsPageScroll()); }