X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..3187b15febc24307d97d8e8cb67bef5a3b61f7eb:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index d4190e23fb..1dc93c27de 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -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()); }