From cb752f18227a62e22d5f94c798cc6472dda73c84 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 22 Nov 2007 10:56:27 +0000 Subject: [PATCH] xdiff -> xDiff, useHorz -> useHorizontal... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22978 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextView.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/kits/interface/TextView.cpp b/src/kits/interface/TextView.cpp index 4c8a477fc7..fe1a2bd02d 100644 --- a/src/kits/interface/TextView.cpp +++ b/src/kits/interface/TextView.cpp @@ -1911,29 +1911,29 @@ BTextView::ScrollToOffset(int32 inOffset) void -BTextView::_ScrollToOffset(int32 inOffset, bool useHorz, bool useVert) +BTextView::_ScrollToOffset(int32 inOffset, bool useHorizontal, bool useVertical) { BRect bounds = Bounds(); float lineHeight = 0.0; - float xdiff = 0.0; - float ydiff = 0.0; + float xDiff = 0.0; + float yDiff = 0.0; BPoint point = PointAt(inOffset, &lineHeight); - if (useHorz) { + if (useHorizontal) { if (point.x < bounds.left) - xdiff = point.x - bounds.left - bounds.IntegerWidth() / 2; + xDiff = point.x - bounds.left - bounds.IntegerWidth() / 2; else if (point.x >= bounds.right) - xdiff = point.x - bounds.right + bounds.IntegerWidth() / 2; + xDiff = point.x - bounds.right + bounds.IntegerWidth() / 2; } - if (useVert) { + if (useVertical) { if (point.y < bounds.top) - ydiff = point.y - bounds.top - bounds.IntegerHeight() / 2; + yDiff = point.y - bounds.top - bounds.IntegerHeight() / 2; else if (point.y >= bounds.bottom) - ydiff = point.y - bounds.bottom + bounds.IntegerHeight() / 2; + yDiff = point.y - bounds.bottom + bounds.IntegerHeight() / 2; } - ScrollBy(xdiff, ydiff); + ScrollBy(xDiff, yDiff); }