Fresco/Berlin/modules/Widgets/Motif Panner.cc,1.20,1.21
Nick Lewycky <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Berlin/modules/Widgets/Motif In directory purcel:/tmp/cvs-serv30419 Modified Files: Panner.cc Log Message: Don't leave garbage around the edge of the panner thumb. The old code was damaging an area the size of the panner control, but with an origin point at the top-left of the thumb. This change makes it damage the whole control--which may be too much. If someone wants to optimize, that may be possible. Index: Panner.cc =================================================================== RCS file: /cvs/fresco/Fresco/Berlin/modules/Widgets/Motif/Panner.cc,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- Panner.cc 5 Jan 2003 16:21:36 -0000 1.20 +++ Panner.cc 10 Mar 2003 02:42:27 -0000 1.21 @@ -74,12 +74,12 @@ Impl_var<RegionImpl> allocation(new RegionImpl(info.allocation)); Coord lower = allocation->lower.x; Coord scale = allocation->upper.x - allocation->lower.x; - allocation->lower.x = lower + scale*_offset[xaxis].lower; - allocation->upper.x = lower + scale*_offset[xaxis].upper; + allocation->lower.x = lower + scale; + allocation->upper.x = lower + scale; lower = allocation->lower.y; scale = allocation->upper.y - allocation->lower.y; - allocation->lower.y = lower + scale*_offset[yaxis].lower; - allocation->upper.y = lower + scale*_offset[yaxis].upper; + allocation->lower.y = lower + scale; + allocation->upper.y = lower + scale; allocation->lower.z = allocation->upper.z = 0.; allocation->normalize(info.transformation);