Index: GUIVerticalScrollbar.cs =================================================================== --- GUIVerticalScrollbar.cs (revision 27877) +++ GUIVerticalScrollbar.cs (working copy) @@ -119,9 +119,8 @@ float fPosYOff = (fPercent / 100.0f); // Scale handle-parts for resolution. - int backgroundWidth = _imageBackground.TextureWidth; - GUIGraphicsContext.ScaleVertical(ref backgroundWidth); + GUIGraphicsContext.ScaleHorizontal(ref backgroundWidth); _imageBackground.Width = backgroundWidth; int handleHeight = _imageTop.TextureHeight; @@ -130,14 +129,14 @@ _imageBottom.Height = handleHeight; int handleWidth = _imageTop.TextureWidth; - GUIGraphicsContext.ScaleVertical(ref handleWidth); + GUIGraphicsContext.ScaleHorizontal(ref handleWidth); _imageTop.Width = handleWidth; _imageBottom.Width = handleWidth; _heightKnob = (int)(2 * _imageTop.Height); _startPositionY = _imageBackground.YPosition; - _endPositionY = _startPositionY + _imageBackground.Height - _imageTop.Height; - fPosYOff *= (float)(_endPositionY - _startPositionY); + _endPositionY = _startPositionY + _imageBackground.Height; + fPosYOff *= (float)(_endPositionY - _imageTop.Height - _startPositionY); _knobPositionY = _startPositionY + (int)fPosYOff; _imageBackground.Render(timePassed);