Changeset 154 for trunk/src/org/expeditee/gui/FrameGraphics.java
- Timestamp:
- 07/22/08 10:05:32 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameGraphics.java
r147 r154 123 123 _MaxSize.setSize(max.width, newMaxHeight); 124 124 } 125 126 if (DisplayIO.getCurrentFrame() != null) { 127 DisplayIO.getCurrentFrame().setBuffer(null); 128 DisplayIO.getCurrentFrame().refreshSize(_MaxSize); 125 Frame current = DisplayIO.getCurrentFrame(); 126 if (current != null) { 127 current.setBuffer(null); 128 current.refreshSize(getMaxFrameSize()); 129 if (DisplayIO.isTwinFramesOn()) { 130 Frame opposite = DisplayIO.getOppositeFrame(); 131 //if (opposite != null) { 132 opposite.setBuffer(null); 133 opposite.refreshSize(getMaxFrameSize()); 134 //} 135 } 129 136 } 130 137 131 138 if (newMaxHeight > 0) { 132 MessageBay.updateSize(); 139 MessageBay.updateSize(); 133 140 } 134 141 } … … 398 405 if (toPaint == DisplayIO.getCurrentFrame()) { 399 406 // If exactly one end of the line is floating... 400 401 402 407 403 408 if (line.getEndItem().isFloating() 404 409 ^ line.getStartItem().isFloating()) { 405 // Line l = TransposeLine(line, line.getEndItem(), 406 // toPaint, 0, 0); 407 // if (l == null) 408 // l = TransposeLine(line, 409 // line.getStartItem(), toPaint, 0, 0); 410 // if (l == null) 411 // l = line; 412 // lines.add(l); 413 } else{ 414 //lines.add(line); 410 // Line l = TransposeLine(line, 411 // line.getEndItem(), 412 // toPaint, 0, 0); 413 // if (l == null) 414 // l = TransposeLine(line, 415 // line.getStartItem(), toPaint, 0, 0); 416 // if (l == null) 417 // l = line; 418 // lines.add(l); 419 } else { 420 // lines.add(line); 415 421 } 416 422 } else { 417 //if (line.getEndItem().isFloating()418 //^ line.getStartItem().isFloating()) {419 //lines.add(TransposeLine(line,420 //line.getEndItem(), toPaint,421 //FrameMouseActions.getY(), -DisplayIO422 //.getMiddle()));423 //lines.add(TransposeLine(line, line424 //.getStartItem(), toPaint,425 //FrameMouseActions.getY(), -DisplayIO426 //.getMiddle()));427 //}423 // if (line.getEndItem().isFloating() 424 // ^ line.getStartItem().isFloating()) { 425 // lines.add(TransposeLine(line, 426 // line.getEndItem(), toPaint, 427 // FrameMouseActions.getY(), -DisplayIO 428 // .getMiddle())); 429 // lines.add(TransposeLine(line, line 430 // .getStartItem(), toPaint, 431 // FrameMouseActions.getY(), -DisplayIO 432 // .getMiddle())); 433 // } 428 434 } 429 435 }
Note:
See TracChangeset
for help on using the changeset viewer.