X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fsession%2FAWTSessionInfo.java;h=1c9bf97aaf22da574d7d9bb9f34fa7815d4e07e5;hb=3633816889a62bb395ff68f9219dcd26d600c870;hp=5a806cfd36a86c8d73e962b800ab273bccb4135c;hpb=30bd4abd2a85c162bdf0a1cc687b366345182bc1;p=fanfix.git diff --git a/src/jexer/session/AWTSessionInfo.java b/src/jexer/session/AWTSessionInfo.java index 5a806cf..1c9bf97 100644 --- a/src/jexer/session/AWTSessionInfo.java +++ b/src/jexer/session/AWTSessionInfo.java @@ -36,7 +36,7 @@ import java.awt.Insets; /** * AWTSessionInfo provides a session implementation with a callback into an * AWT Frame to support queryWindowSize(). The username is blank, language - * is "en_US", with a 80x24 text window. + * is "en_US", with a 132x40 text window. */ public final class AWTSessionInfo implements SessionInfo { @@ -68,12 +68,12 @@ public final class AWTSessionInfo implements SessionInfo { /** * Text window width. */ - private int windowWidth = 80; + private int windowWidth = 132; /** * Text window height. */ - private int windowHeight = 24; + private int windowHeight = 40; /** * Username getter. @@ -162,26 +162,4 @@ public final class AWTSessionInfo implements SessionInfo { } - /** - * Convert pixel column position to text cell column position. - * - * @param x pixel column position - * @return text cell column position - */ - public int textColumn(final int x) { - Insets insets = frame.getInsets(); - return ((x - insets.left) / textWidth); - } - - /** - * Convert pixel row position to text cell row position. - * - * @param y pixel row position - * @return text cell row position - */ - public int textRow(final int y) { - Insets insets = frame.getInsets(); - return ((y - insets.top) / textHeight); - } - }