mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 15:03:21 -04:00
fixed a view more high resolution screen issues
This commit is contained in:
parent
db9e8057a3
commit
1bbb30b44f
@ -272,7 +272,10 @@ public class ElementHelpDialog extends JDialog {
|
||||
static BufferedImage getImage(String name) {
|
||||
BufferedImage bi = imageMap.get(name);
|
||||
if (bi == null) {
|
||||
bi = new VisualElement(name).setShapeFactory(shapeFactory).getBufferedImage(0.75 * IMAGE_SCALE, 250 * IMAGE_SCALE);
|
||||
final float scale = IMAGE_SCALE * Screen.getInstance().getScaling();
|
||||
bi = new VisualElement(name)
|
||||
.setShapeFactory(shapeFactory)
|
||||
.getBufferedImage(0.75 * scale, (int) (250 * scale));
|
||||
imageMap.put(name, bi);
|
||||
}
|
||||
return bi;
|
||||
|
@ -1,6 +1,7 @@
|
||||
package de.neemann.digital.gui.components;
|
||||
|
||||
import de.neemann.digital.lang.Lang;
|
||||
import de.neemann.gui.Screen;
|
||||
import de.neemann.gui.ToolTipAction;
|
||||
|
||||
import javax.swing.*;
|
||||
@ -42,7 +43,7 @@ public class ElementOrderer<T> extends JDialog {
|
||||
list = new JList<T>(listModel);
|
||||
JScrollPane scrollPane = new JScrollPane(list);
|
||||
getContentPane().add(scrollPane);
|
||||
scrollPane.setPreferredSize(new Dimension(100, 150));
|
||||
scrollPane.setPreferredSize(Screen.getInstance().scale(new Dimension(100, 150)));
|
||||
|
||||
buttons = new JPanel();
|
||||
buttons.setLayout(new BoxLayout(buttons, BoxLayout.Y_AXIS));
|
||||
|
Loading…
x
Reference in New Issue
Block a user