- Timestamp:
- Jul 14, 2010, 4:16:48 PM (14 years ago)
- Location:
- branches/blt4/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/imageresult.tcl
r1719 r1809 355 355 set iw [image width $imh] 356 356 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} { 359 361 # 360 362 # Scale the image up by creating a "zoom" image which … … 363 365 # image, then scale that part up to the full "view" area. 364 366 # 365 set wz [expr {round($w*$_scale(current))}]366 set hz [expr {round($h*$_scale(current))}]367 367 if {$wz > $iw} { 368 368 set wz $iw … … 396 396 $_image(final) resample $_image(zoom) -filter sinc 397 397 } 398 } else if {$_scale(current) > 1.0}{398 } else { 399 399 # 400 400 # Scale the image down by creating a "zoom" image which -
branches/blt4/gui/scripts/molvisviewer.tcl
r1807 r1809 603 603 # 604 604 itcl::body Rappture::MolvisViewer::Connect {} { 605 set _waitForImage 0; 605 606 if { [isconnected] } { 606 607 return 1 … … 638 639 set _state(client) 1 639 640 set _outbuf "" 641 set _waitForImage 0 640 642 } 641 643 … … 1464 1466 } 1465 1467 } 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 1468 1472 } 1469 1473
Note: See TracChangeset
for help on using the changeset viewer.