/hg/icedtea-web: small centering of splash's leaves and plugin
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Mon Jun 26 08:26:47 UTC 2017
changeset 7f506b1c4564 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=7f506b1c4564
author: Jiri Vanek <jvanek at redhat.com>
date: Mon Jun 26 10:37:26 2017 +0200
small centering of splash's leaves and plugin
diffstat:
netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java | 3 +--
netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefs.java | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 963d166232d4 -r 7f506b1c4564 netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java
--- a/netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java Fri Jun 16 21:03:27 2017 +0200
+++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/BasePainter.java Mon Jun 26 10:37:26 2017 +0200
@@ -46,7 +46,6 @@
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.Stroke;
-import java.awt.Toolkit;
import java.awt.font.TextAttribute;
import java.awt.image.BufferedImage;
import java.util.HashMap;
@@ -493,7 +492,7 @@
g2d.setColor(pluginColor);
if (SplashReason.APPLET.equals(master.getSplashReason())) {
if (showLeaf) {
- g2d.drawString(plugin, scaleX(404), scaleY(145));
+ g2d.drawString(plugin, scaleX(420), scaleY(145));
} else {
FontMetrics wfm = g2d.getFontMetrics(webFont);
g2d.drawString(plugin, wfm.stringWidth(web) + scaleX(WEB_LEFT_ALIGMENT) + 10, scaleY(WEB_TOP_ALIGMENT));
diff -r 963d166232d4 -r 7f506b1c4564 netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefs.java
--- a/netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefs.java Fri Jun 16 21:03:27 2017 +0200
+++ b/netx/net/sourceforge/jnlp/splashscreen/impls/defaultsplashscreen2012/SplinesDefs.java Mon Jun 26 10:37:26 2017 +0200
@@ -1313,7 +1313,7 @@
for (int i = 0; i < pp.length; i++) {
Point p = pp[i];
//small movement to right
- r.addPoint((int) ((double) (p.x - 25) * scalex), (int) ((double) p.y * scaley));
+ r.addPoint((int) ((double) (p.x - 17) * scalex), (int) ((double) p.y * scaley));
}
return r;
}
More information about the distro-pkg-dev
mailing list