} catch (Exception e) {
if (Log.on) Log.log(this, "Exception while reading from environment:");
if (Log.on) Log.log(this, e);
} catch (Exception e) {
if (Log.on) Log.log(this, "Exception while reading from environment:");
if (Log.on) Log.log(this, e);
public static Surface createSurface(Box b, boolean framed, boolean refreshable) {
Surface ret = platform._createSurface(b, framed);
ret.setInvisible(b.invisible);
public static Surface createSurface(Box b, boolean framed, boolean refreshable) {
Surface ret = platform._createSurface(b, framed);
ret.setInvisible(b.invisible);
- b.set(Box.size, 0, b.size(0) == 0 ? 10 : b.size(0));
- b.set(Box.size, 1, b.size(1) == 0 ? 10 : b.size(1));
+ b.set(Box.size, 0, b.size(0) < Surface.scarPicture.getWidth() ? Surface.scarPicture.getWidth() : b.size(0));
+ b.set(Box.size, 1, b.size(1) < Surface.scarPicture.getHeight() ? Surface.scarPicture.getHeight() : b.size(1));
Object titlebar = b.get("titlebar", null, true);
if (titlebar != null) ret.setTitleBarText(titlebar.toString());
Object titlebar = b.get("titlebar", null, true);
if (titlebar != null) ret.setTitleBarText(titlebar.toString());