Compare commits

...
1 Commits
Author SHA1 Message Date
RuiFPB fb097a0c49 Fix scaling issues on some windows
Build and Test / build (push) Successful in 1m7s
Release / release (push) Successful in 59s
2026-10-02 19:30:07 +01:00
5 changed files with 13 additions and 10 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
kSYMON - A 6502 System Simulator
===============================
**Version:** 1.5.1k
**Version:** 1.5.1.1k
**Last Updated:** 24 September, 2026
+1 -1
View File
@@ -5,7 +5,7 @@
<groupId>com.loomcom.symon</groupId>
<artifactId>symon</artifactId>
<packaging>jar</packaging>
<version>1.5.1k</version>
<version>1.5.1.1k</version>
<name>symon</name>
<url>https://git.loomcom.com/seth/symon</url>
<properties>
@@ -23,6 +23,7 @@
package com.loomcom.symon.ui;
import com.formdev.flatlaf.util.UIScale;
import com.loomcom.symon.Breakpoints;
import com.loomcom.symon.util.Utils;
import org.slf4j.Logger;
@@ -40,7 +41,7 @@ public class BreakpointsWindow extends JFrame {
private static final Logger logger = LoggerFactory.getLogger(BreakpointsWindow.class);
private static final Dimension FRAME_SIZE = new Dimension(240, 280);
private static final Dimension FRAME_SIZE = UIScale.scale(new Dimension(240, 280));
private static final String EMPTY_STRING = "";
private final JFrame mainWindow;
@@ -23,6 +23,7 @@
package com.loomcom.symon.ui;
import com.formdev.flatlaf.util.UIScale;
import com.loomcom.symon.Bus;
import com.loomcom.symon.exceptions.MemoryAccessException;
import com.loomcom.symon.util.Utils;
@@ -55,15 +56,15 @@ public class MemoryWindow extends JFrame implements ActionListener {
private JButton previousPageButton;
private JButton nextPageButton;
private static final Dimension MINIMUM_SIZE = new Dimension(320, 600);
private static final Dimension MINIMUM_SIZE = UIScale.scale(new Dimension(400, 600));
// The width of column 0 (address), in pixels
private static final int ADDR_COL_WIDTH = 48;
private static final int ADDR_COL_WIDTH = UIScale.scale(64);
private static final int HEX_COL_WIDTH = 32;
private static final int HEX_COL_WIDTH = UIScale.scale(32);
// The width of the ASCII cells, in pixels
private static final int ASCII_COL_WIDTH = 8;
private static final int ASCII_COL_WIDTH = UIScale.scale(15);
// The start/end columns of the ASCII view
private static final int ASCII_COL_START = 9;
@@ -24,6 +24,7 @@
package com.loomcom.symon.ui;
import com.formdev.flatlaf.util.UIScale;
import com.loomcom.symon.CpuState;
import com.loomcom.symon.util.FifoRingBuffer;
@@ -39,8 +40,8 @@ public class TraceLog extends JFrame {
private final FifoRingBuffer<CpuState> traceLog;
private final JTextArea traceLogTextArea;
private static final Dimension MIN_SIZE = new Dimension(320, 200);
private static final Dimension PREFERRED_SIZE = new Dimension(640, 480);
private static final Dimension MIN_SIZE = UIScale.scale(new Dimension(320, 200));
private static final Dimension PREFERRED_SIZE = UIScale.scale(new Dimension(640, 480));
private static final int MAX_LOG_LENGTH = 50000;
public TraceLog() {
@@ -53,7 +54,7 @@ public class TraceLog extends JFrame {
setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
traceLogTextArea = new JTextArea();
traceLogTextArea.setFont(new Font(Font.MONOSPACED, Font.BOLD, 12));
traceLogTextArea.setFont(new Font(Font.MONOSPACED, Font.BOLD, UIScale.scale(12)));
traceLogTextArea.setEditable(false);
JScrollPane scrollableView = new JScrollPane(traceLogTextArea);