Changeset 1809 for branches


Ignore:
Timestamp:
Jul 14, 2010, 4:16:48 PM (14 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/imageresult.tcl

    r1719 r1809  
    355355        set iw [image width $imh]
    356356        set ih [image height $imh]
    357 
    358         if { $_scale(current) < 1.0 } {
     357        set wz [expr {round($w*$_scale(current))}]
     358        set hz [expr {round($h*$_scale(current))}]
     359
     360        if {$wz < $iw || $hz < $ih} {
    359361            #
    360362            # Scale the image up by creating a "zoom" image which
     
    363365            # image, then scale that part up to the full "view" area.
    364366            #
    365             set wz [expr {round($w*$_scale(current))}]
    366             set hz [expr {round($h*$_scale(current))}]
    367367            if {$wz > $iw} {
    368368                set wz $iw
     
    396396                $_image(final) resample $_image(zoom) -filter sinc
    397397            }
    398         } elseif {$_scale(current) > 1.0} {
     398        } else {
    399399            #
    400400            # Scale the image down by creating a "zoom" image which
  • branches/blt4/gui/scripts/molvisviewer.tcl

    r1807 r1809  
    603603#
    604604itcl::body Rappture::MolvisViewer::Connect {} {
     605    set _waitForImage 0;               
    605606    if { [isconnected] } {
    606607        return 1
     
    638639    set _state(client) 1
    639640    set _outbuf ""
     641    set _waitForImage 0
    640642}
    641643
     
    14641466        }
    14651467    }
    1466     update idletasks
    1467     update
     1468    # In a sequence there will be multiple calls to the "add" method.  Run
     1469    # "update" here to let the fileevent handler catch up with images,
     1470    # regardless of the speed setting in the sequence.
     1471    update
    14681472}
    14691473
Note: See TracChangeset for help on using the changeset viewer.