X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa146dd7132bf122d9645267529dde7b64039f48..4c30035625ce9c4980e52db808704b377af12041:/src/html/htmlwin.cpp diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index cdd00d18c2..c1af6ac461 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -29,7 +29,6 @@ #include "wx/html/forcelnk.h" - //----------------------------------------------------------------------------- // wxHtmlWindow //----------------------------------------------------------------------------- @@ -434,8 +433,12 @@ void wxHtmlWindow::OnDraw(wxDC& dc) if (m_tmpCanDrawLocks > 0) return; dc.SetMapMode(wxMM_TEXT); +#if 0 +/* VS - I don't think this is neccessary any longer + MSC_VER 1200 means MSVC 6.0 and it works fine */ #if defined(_MSC_VER) && (_MSC_VER == 1200) ::SetMapMode((HDC)dc.GetHDC(), MM_TEXT); +#endif #endif dc.SetBackgroundMode(wxTRANSPARENT); ViewStart(&x, &y); @@ -470,12 +473,12 @@ void wxHtmlWindow::OnKeyDown(wxKeyEvent& event) switch (event.KeyCode()) { case WXK_PAGEUP : - case WXK_PRIOR : - Scroll(-1, sty - cliy); + case WXK_PRIOR : + Scroll(-1, sty - (2 * cliy / 3)); break; case WXK_PAGEDOWN : - case WXK_NEXT : - Scroll(-1, sty + cliy); + case WXK_NEXT : + Scroll(-1, sty + (2 * cliy / 3)); break; case WXK_HOME : Scroll(-1, 0);