Adjustes Clip-Rect Size
This commit is contained in:
parent
97dc53e4d9
commit
4c0ddad9aa
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue