* @return the number of columns in the display
*/
public int getDisplayWidth() {
- return getWidth() - 2;
+ if (ptypipe) {
+ return getWidth() - 2;
+ }
+ return 80;
}
/**
* @return the number of rows in the display
*/
public int getDisplayHeight() {
- return getHeight() - 2;
+ if (ptypipe) {
+ return getHeight() - 2;
+ }
+ return 24;
}
/**