Skip to content

Commit 775e086

Browse files
authored
ScissorEffect: Stop flooring scale factor
This fixes ScissorEffect cutting off areas which should be included with the fractional part. GitHub: #172
1 parent 4929d08 commit 775e086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/gg/essential/elementa/effects/ScissorEffect.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ScissorEffect @JvmOverloads constructor(
4545

4646
override fun beforeDraw(matrixStack: UMatrixStack) {
4747
val bounds = customBoundingBox?.getScissorBounds() ?: scissorBounds ?: boundComponent.getScissorBounds()
48-
val scaleFactor = UResolution.scaleFactor.toInt()
48+
val scaleFactor = UResolution.scaleFactor
4949

5050
oldState = currentScissorState
5151
val state = oldState

0 commit comments

Comments
 (0)