Ignore:
Timestamp:
07/22/08 10:05:32 (16 years ago)
Author:
ra33
Message:

Fixing bugs for Rob

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameGraphics.java

    r147 r154  
    123123                        _MaxSize.setSize(max.width, newMaxHeight);
    124124                }
    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                        }
    129136                }
    130137
    131138                if (newMaxHeight > 0) {
    132                         MessageBay.updateSize();       
     139                        MessageBay.updateSize();
    133140                }
    134141        }
     
    398405                                                if (toPaint == DisplayIO.getCurrentFrame()) {
    399406                                                        // If exactly one end of the line is floating...
    400                                                        
    401                                                        
    402                                                        
     407
    403408                                                        if (line.getEndItem().isFloating()
    404409                                                                        ^ 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);
    415421                                                        }
    416422                                                } else {
    417 //                                                      if (line.getEndItem().isFloating()
    418 //                                                                      ^ line.getStartItem().isFloating()) {
    419 //                                                              lines.add(TransposeLine(line,
    420 //                                                                              line.getEndItem(), toPaint,
    421 //                                                                              FrameMouseActions.getY(), -DisplayIO
    422 //                                                                                              .getMiddle()));
    423 //                                                              lines.add(TransposeLine(line, line
    424 //                                                                              .getStartItem(), toPaint,
    425 //                                                                              FrameMouseActions.getY(), -DisplayIO
    426 //                                                                                              .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                                                        // }
    428434                                                }
    429435                                        }
Note: See TracChangeset for help on using the changeset viewer.