--- ray/src/hd/rhd_x11dbg.c 2003/02/22 02:07:24 3.1 +++ ray/src/hd/rhd_x11dbg.c 2003/07/21 22:30:18 3.2 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rhd_x11dbg.c,v 3.1 2003/02/22 02:07:24 greg Exp $"; +static const char RCSid[] = "$Id: rhd_x11dbg.c,v 3.2 2003/07/21 22:30:18 schorsch Exp $"; #endif /* * X11 driver for holodeck display. @@ -169,7 +169,7 @@ char *id; DisplayWidth(ourdisplay, ourscreen); pheight = (double)DisplayHeightMM(ourdisplay, ourscreen) / DisplayHeight(ourdisplay, ourscreen); - copystruct(&odev.v, &stdview); + odev.v = stdview; odev.name = id; odev.v.type = VT_PER; odev.v.horiz = 2.*180./PI * atan(0.5/VIEWDIST*pwidth*odev.hres); @@ -207,7 +207,7 @@ VIEW *nv; tan(PI/180./2.*nv->vert); XResizeWindow(ourdisplay, gwind, odev.hres, odev.vres); } - copystruct(&odev.v, nv); + odev.v = *nv; } qtReplant(); } @@ -468,7 +468,7 @@ int dx, dy, move; double d; register int i, li; /* start with old view */ - copystruct(&nv, &odev.v); + nv = odev.v; /* change view direction */ if (move) { if ((li = qtFindLeaf(dx, dy)) < 0)