Optimized Aspect Ratio Calculation in ReplayScreenshot to replace 1280/720 with 16/9

This commit is contained in:
CrushedPixel
2015-07-02 14:40:48 +02:00
parent 4a2c7df25f
commit c811c81be1

View File

@@ -52,7 +52,7 @@ public class ReplayScreenshot {
@Override
public void run() {
try {
float aspect = 1280f / 720f;
float aspect = 16f/9f;
Rectangle rect;
if((float) fbi.getWidth() / (float) fbi.getHeight() <= aspect) {