/[gzz]/gzz/gzz/modules/pp2/PPCanvasCursor.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp2/PPCanvasCursor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mudyc, Wed Feb 12 14:10:27 2003 UTC revision 1.13 by tjl, Wed Feb 12 14:49:09 2003 UTC
# Line 147  private static final String rcsid = "$Id Line 147  private static final String rcsid = "$Id
147      private void setZoomPan(VobScene vs, int mainFrame) {      private void setZoomPan(VobScene vs, int mainFrame) {
148          DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;          DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;
149          int cs = m.getCS(mainFrame, "C2F");          int cs = m.getCS(mainFrame, "C2F");
150            int csinv = m.getCS(mainFrame, "C2FINV");
151          vs.coords.setOrthoParams(cs, 0, -panx*zoom, -pany*zoom, zoom, zoom);          vs.coords.setOrthoParams(cs, 0, -panx*zoom, -pany*zoom, zoom, zoom);
152            vs.coords.setOrthoParams(cs, 0, panx, pany, 1/zoom, 1/zoom);
153      }      }
154    
155      private int c2fCS = -1;      private int c2fCS = -1;
156      public void renderMain(VobScene vs, int into) {      public void renderMain(VobScene vs, int into) {
157          c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);          c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);
158            int c2fCSInv = vs.coords.ortho(0, 0, 0, 0, 10, 10);
159          vs.matcher.add(into, c2fCS, "C2F");          vs.matcher.add(into, c2fCS, "C2F");
160            vs.matcher.add(into, c2fCSInv, "C2FINV");
161          setZoomPan(vs, into);          setZoomPan(vs, into);
162          SinglePaper.i(space, d, window, current).render(vs, into, c2fCS, hook);          SinglePaper.i(space, d, window, current).render(vs, into, c2fCS, c2fCSInv, hook);
163      }      }
164    
165      public void keystroke(String s) {      public void keystroke(String s) {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26