Revision: 2390
http://sourceforge.net/p/swingme/code/2390
Author: yuranet
Date: 2020-06-21 14:32:52 +0000 (Sun, 21 Jun 2020)
Log Message:
-----------
AA for fonts
Modified Paths:
--------------
me4se/src/javax/microedition/lcdui/ScmCanvas.java
Modified: me4se/src/javax/microedition/lcdui/ScmCanvas.java
===================================================================
--- me4se/src/javax/microedition/lcdui/ScmCanvas.java 2020-06-04 17:15:33 UTC (rev 2389)
+++ me4se/src/javax/microedition/lcdui/ScmCanvas.java 2020-06-21 14:32:52 UTC (rev 2390)
@@ -8,7 +8,9 @@
*/
import java.awt.Color;
+import java.awt.Graphics2D;
import java.awt.Rectangle;
+import java.awt.RenderingHints;
import java.awt.event.InputEvent;
import java.awt.image.BufferedImage;
@@ -55,7 +57,12 @@
// getHeight(), BufferedImage.TYPE_INT_RGB);
//}
- // YURA basically we can noy have this check here
+ // YURA FIX make fonts look nicer
+ if (g instanceof Graphics2D) {
+ ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+ }
+
+ // YURA we can not have this check here
// as what happens is there is 1 request for 1 sq and a 2nd request for a second sq to paint
// but after the first paint, this flag is set to flase, and the second paint does not happen
// this can leave areas that should have been painted, not being painted
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|