early-access version 3671

This commit is contained in:
pineappleEA 2023-06-13 21:51:31 +02:00
parent 27314341d7
commit a1cf03f41a
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
yuzu emulator early access
=============
This is the source code for early-access 3670.
This is the source code for early-access 3671.
## Legal Notice

View File

@ -38,9 +38,11 @@ class FixedRatioSurfaceView @JvmOverloads constructor(
newWidth = width
newHeight = (width / aspectRatio).roundToInt()
}
setMeasuredDimension(newWidth, newHeight)
val left = (width - newWidth) / 2;
val top = (height - newHeight) / 2;
setLeftTopRightBottom(left, top, left + newWidth, top + newHeight)
} else {
setMeasuredDimension(width, height)
setLeftTopRightBottom(0, 0, width, height)
}
}
}