Revision: 2383
http://sourceforge.net/p/swingme/code/2383
Author: yuranet
Date: 2019-12-06 21:39:56 +0000 (Fri, 06 Dec 2019)
Log Message:
-----------
revert removing fallback for save jpeg
Modified Paths:
--------------
me4se/opt/m3g_basic/src/javax/microedition/amms/AwtJpegEncoder.java
Modified: me4se/opt/m3g_basic/src/javax/microedition/amms/AwtJpegEncoder.java
===================================================================
--- me4se/opt/m3g_basic/src/javax/microedition/amms/AwtJpegEncoder.java 2019-12-06 21:35:29 UTC (rev 2382)
+++ me4se/opt/m3g_basic/src/javax/microedition/amms/AwtJpegEncoder.java 2019-12-06 21:39:56 UTC (rev 2383)
@@ -23,7 +23,7 @@
}
}
catch(Throwable th) {
- /*
+
if ("jpeg".equals(imageIOformat) || "jpg".equals(imageIOformat)) {
try {
System.out.println("failed to save with ImageIO, falling back to com.sun.image.codec.jpeg");
@@ -38,7 +38,7 @@
}
catch (Throwable ex) { } // anything really can go wrong here, but we do not really care
}
-*/
+
javax.microedition.media.MediaException mex = new javax.microedition.media.MediaException();
mex.initCause(th);
throw mex;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|