Home
last modified time | relevance | path

Searched refs:extraBoundsY (Results 1 – 1 of 1) sorted by relevance

/dports/games/openclonk/openclonk-release-8.1-src/src/game/
H A DC4Viewport.cpp562 float scrollRange, extraBoundsX, extraBoundsY; in AdjustPosition() local
564 scrollRange = extraBoundsX = extraBoundsY = 0; in AdjustPosition()
572 extraBoundsX = extraBoundsY = ViewportScrollBorder; in AdjustPosition()
581 …if (targetCenterViewY < ViewportScrollBorder) extraBoundsY = std::min<float>(ViewportScrollBorder … in AdjustPosition()
582 …else if (targetCenterViewY >= ::Landscape.GetHeight() - ViewportScrollBorder) extraBoundsY = std::… in AdjustPosition()
586 extraBoundsY = std::max(extraBoundsY, (ViewHgt/Zoom - ::Landscape.GetHeight())/2 + 1); in AdjustPosition()
604 …Clamp(targetCenterViewY, ViewHgt/Zoom/2 - extraBoundsY, ::Landscape.GetHeight() - ViewHgt/Zoom/2 +… in AdjustPosition()