[Jrisk-cvs] SF.net SVN: domination-code:[2614] Domination
Brought to you by:
yuranet
|
From: <yu...@us...> - 2025-01-11 18:49:13
|
Revision: 2614
http://sourceforge.net/p/domination/code/2614
Author: yuranet
Date: 2025-01-11 18:49:09 +0000 (Sat, 11 Jan 2025)
Log Message:
-----------
java 1.5 fix
Modified Paths:
--------------
Domination/ChangeLog.txt
Domination/swingUI/src/net/yura/swing/HeapView.java
Modified: Domination/ChangeLog.txt
===================================================================
--- Domination/ChangeLog.txt 2025-01-11 17:57:09 UTC (rev 2613)
+++ Domination/ChangeLog.txt 2025-01-11 18:49:09 UTC (rev 2614)
@@ -14,7 +14,7 @@
Increment1GUI: 2
CommandLine: 2
-1.3.2 (11.01.2025) (svn rev 2612)
+1.3.2 (11.01.2025) (svn rev 2614)
music update for menu and winning
better loading screens when loading online games and downloading maps
Modified: Domination/swingUI/src/net/yura/swing/HeapView.java
===================================================================
--- Domination/swingUI/src/net/yura/swing/HeapView.java 2025-01-11 17:57:09 UTC (rev 2613)
+++ Domination/swingUI/src/net/yura/swing/HeapView.java 2025-01-11 18:49:09 UTC (rev 2614)
@@ -33,7 +33,7 @@
import java.awt.event.MouseEvent;
import java.awt.font.GlyphVector;
import java.awt.geom.AffineTransform;
-import java.awt.geom.Path2D;
+import java.awt.geom.GeneralPath;
import java.awt.geom.Rectangle2D;
import java.text.MessageFormat;
import java.util.Arrays;
@@ -417,13 +417,13 @@
* @param height The height of the chart
*/
private void paintSamples(Graphics2D g, int width, int height) {
- Path2D path = new Path2D.Double();
+ GeneralPath path = new GeneralPath();
path.moveTo(0, height);
for (int i = 0; i < GRAPH_COUNT; ++i) {
int index = (i + graphIndex) % GRAPH_COUNT;
double x = (double) i / (double) (GRAPH_COUNT - 1) * (double) width;
double y = (double) height * (1.0 - (double) graph[index] / (double) lastTotal);
- path.lineTo(x, y);
+ path.lineTo((float)x, (float)y);
}
path.lineTo(width, height);
path.closePath();
|