From: Julian Smart Date: Mon, 19 Nov 2001 16:07:18 +0000 (+0000) Subject: Corrected ViewStart problem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a059a1f2e2e38f4dc2f5b9efe05e1714354b681f Corrected ViewStart problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/samples/ogl/studio/shapes.cpp b/contrib/samples/ogl/studio/shapes.cpp index 84177d1331..ded2eb7ba1 100644 --- a/contrib/samples/ogl/studio/shapes.cpp +++ b/contrib/samples/ogl/studio/shapes.cpp @@ -168,7 +168,7 @@ void csEvtHandler::OnRightClick(double x, double y, int keys, int attachment) int viewStartX, viewStartY; int unitX, unitY; - GetShape()->GetCanvas()->ViewStart(& viewStartX, & viewStartY); + GetShape()->GetCanvas()->GetViewStart(& viewStartX, & viewStartY); GetShape()->GetCanvas()->GetScrollPixelsPerUnit(& unitX, & unitY); int x1 = (int)(x * GetShape()->GetCanvas()->GetScaleX());