X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92a19c2e7757ba742846f83e56356de0a607bdc2..df0dc216ad7c5ace4d80c9afc866f3c002b7b09d:/contrib/samples/ogl/studio/shapes.cpp 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());