Fixed the fix of the fix so it will compile under VC6

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker
2000-03-08 14:40:56 +00:00
parent 87e1d2a51b
commit a00d62c913

View File

@@ -633,6 +633,7 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event)
szx, szy, // view size (total) szx, szy, // view size (total)
clix, cliy; // view size (on screen) clix, cliy; // view size (on screen)
int y;
ViewStart(&stx, &sty); ViewStart(&stx, &sty);
GetClientSize(&clix, &cliy); GetClientSize(&clix, &cliy);
GetVirtualSize(&szx, &szy); GetVirtualSize(&szx, &szy);
@@ -662,7 +663,7 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event)
{ {
case WXK_PAGEUP: case WXK_PAGEUP:
case WXK_PRIOR: case WXK_PRIOR:
int y = sty - (5 * cliy / 6); y = sty - (5 * cliy / 6);
Scroll(-1, (y == -1) ? 0 : y); Scroll(-1, (y == -1) ? 0 : y);
break; break;