Adjustes Clip-Rect Size

This commit is contained in:
Frank 2022-07-21 19:07:49 +02:00
parent 97dc53e4d9
commit 4c0ddad9aa

View file

@ -77,9 +77,9 @@ public abstract class LayoutComponent<R extends ComponentRenderer, L extends Lay
final int windowHeight = Minecraft.getInstance().getWindow().getHeight();
RenderSystem.enableScissor(
(int) (clippingRect.left * uiScale),
(int) (windowHeight - clippingRect.bottom() * uiScale),
(int) (windowHeight - (clippingRect.bottom() + 1) * uiScale),
(int) (clippingRect.width * uiScale),
(int) (clippingRect.height * uiScale)
(int) ((clippingRect.height + 1) * uiScale)
);
}