Skip to content

Commit 6922bdf

Browse files
committed
prevent enormous console with dpi scaling
1 parent df64ad2 commit 6922bdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/ui/Editor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ public void paintComponent(Graphics g) {
262262
textarea = createTextArea();
263263
textarea.setRightClickPopup(new TextAreaPopup());
264264
textarea.setHorizontalOffset(JEditTextArea.leftHandGutter);
265+
//System.out.println(textarea.getPreferredSize());
266+
textarea.setPreferredSize(new Dimension(textarea.getPreferredSize().width,
267+
Toolkit.zoom(90)));
265268

266269
{ // Hack: add Numpad Slash as an alternative shortcut for Comment/Uncomment
267270
int modifiers = Toolkit.awtToolkit.getMenuShortcutKeyMask();

0 commit comments

Comments
 (0)