Added PR119 Option to set scale factor in advanced settings (Set it to 2.0 on Mac retina displays)

This commit is contained in:
Jindra Petřík
2022-11-21 21:47:40 +01:00
parent 6f57d64c18
commit ccfaeef551
10 changed files with 25 additions and 8 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ import java.awt.image.BufferedImage;
import java.awt.image.VolatileImage;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
@@ -682,7 +683,7 @@ public class View {
}
return conf;
}
public static BufferedImage toCompatibleImage(BufferedImage image) {
if (image.getColorModel().equals(getDefaultConfiguration().getColorModel())) {
return image;