Ignore:
Timestamp:
Nov 25, 2008 10:01:15 AM (16 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r1236 r1237  
    444444
    445445static void
    446 NanoVis::pan(int dx, int dy)
     446NanoVis::pan(int x, int y)
    447447{
    448448    float x, y;
     
    456456    fprintf(stderr, "x=%f, y=%f\n", x, y);
    457457   
    458     cam->x(cam->x() + x);
    459     cam->y(cam->y() + y);
     458    cam->x(def_eye_x + x);
     459    cam->y(def_eye_y + y);
    460460    fprintf(stderr, "set eye to %f %f\n", cam->x(), cam->y());
    461461
    462     cam->xAim(cam->xAim() + x);
    463     cam->yAim(cam->yAim() + y);
     462    cam->xAim(def_target_x + x);
     463    cam->yAim(def_target_y + y);
    464464    fprintf(stderr, "set aim to %f %f\n", cam->xAim(), cam->yAim());
    465465}
Note: See TracChangeset for help on using the changeset viewer.