Optimized Aspect Ratio Calculation in ReplayScreenshot to replace 1280/720 with 16/9
This commit is contained in:
@@ -52,7 +52,7 @@ public class ReplayScreenshot {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
float aspect = 1280f / 720f;
|
float aspect = 16f/9f;
|
||||||
|
|
||||||
Rectangle rect;
|
Rectangle rect;
|
||||||
if((float) fbi.getWidth() / (float) fbi.getHeight() <= aspect) {
|
if((float) fbi.getWidth() / (float) fbi.getHeight() <= aspect) {
|
||||||
|
|||||||
Reference in New Issue
Block a user