| 1 |
Descriptionscip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/patches/`04_disable_apple_code.patch`#Description.: Comment out code using apple code (apple.awt.*) |
| 2 |
(isRetina.isRetina() always returns false) |
| 3 |
Authorscip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/patches/`04_disable_apple_code.patch`#Author.: Felix Natter <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 4 |
Forwardedscip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/patches/`04_disable_apple_code.patch`#Forwarded.: not-needed |
| 5 |
Last-Updatescip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/patches/`04_disable_apple_code.patch`#Last-Update.: 2019-10-09 |
| 6 |
|
| 7 |
--- a/src/com/bulenkov/iconloader/AppleHiDPIScaledImage.javascip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/upstream/`src/com/bulenkov/iconloader/AppleHiDPIScaledImage.java`: |
| 8 |
+++ b/src/com/bulenkov/iconloader/AppleHiDPIScaledImage.javascip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/upstream/`src/com/bulenkov/iconloader/AppleHiDPIScaledImage.java`: |
| 9 |
@@ -16,7 +16,7 @@ |
| 10 |
|
| 11 |
package com.bulenkov.iconloader; |
| 12 |
|
| 13 |
|
| 14 |
+//import apple.awt.CImage; |
| 15 |
|
| 16 |
import java.awt.*; |
| 17 |
import java.awt.image.BufferedImage; |
| 18 |
@@ -26,14 +26,16 @@ |
| 19 |
*/ |
| 20 |
public class AppleHiDPIScaledImage { |
| 21 |
public static BufferedImage create(int width, int height, int imageType) { |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
+ //return new CImage.HiDPIScaledImage(width, height, imageType) { |
| 28 |
+ // @Override |
| 29 |
+ // protected void drawIntoImage(BufferedImage image, float scale) { |
| 30 |
+ // } |
| 31 |
+ //}; |
| 32 |
+ return null; |
| 33 |
} |
| 34 |
|
| 35 |
public static boolean is(Image image) { |
| 36 |
|
| 37 |
+ //return image instanceof CImage.HiDPIScaledImage; |
| 38 |
+ return false; |
| 39 |
} |
| 40 |
} |
| 41 |
--- a/src/com/bulenkov/iconloader/IsRetina.javascip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/upstream/`src/com/bulenkov/iconloader/IsRetina.java`: |
| 42 |
+++ b/src/com/bulenkov/iconloader/IsRetina.javascip-debian debian libiconloader-java 0.0+git20170615+dfsg1-2 libiconloader-java/upstream/`src/com/bulenkov/iconloader/IsRetina.java`: |
| 43 |
@@ -16,7 +16,7 @@ |
| 44 |
|
| 45 |
package com.bulenkov.iconloader; |
| 46 |
|
| 47 |
|
| 48 |
+//import apple.awt.CImage; |
| 49 |
import com.bulenkov.iconloader.util.Ref; |
| 50 |
|
| 51 |
import java.awt.image.BufferedImage; |
| 52 |
@@ -26,20 +26,21 @@ |
| 53 |
*/ |
| 54 |
public class IsRetina { |
| 55 |
public static boolean isRetina() { |
| 56 |
|
| 57 |
|
| 58 |
+ // try { |
| 59 |
+ // final Ref<Boolean> isRetina = Ref.create(false); |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
+ // new CImage.HiDPIScaledImage(1, 1, BufferedImage.TYPE_INT_ARGB) { |
| 71 |
+ // @Override |
| 72 |
+ // public void drawIntoImage(BufferedImage image, float v) { |
| 73 |
+ // isRetina.set(v > 1); |
| 74 |
+ // } |
| 75 |
+ // }; |
| 76 |
+ |
| 77 |
+ // return isRetina.get(); |
| 78 |
+ // } catch (Throwable ignore) { |
| 79 |
+ // return false; |
| 80 |
+ // } |
| 81 |
return false; |
| 82 |
|
| 83 |
} |
| 84 |
} |
| 85 |
|