| 169 |
|
DisplayWidth(ourdisplay, ourscreen); |
| 170 |
|
pheight = (double)DisplayHeightMM(ourdisplay, ourscreen) / |
| 171 |
|
DisplayHeight(ourdisplay, ourscreen); |
| 172 |
< |
copystruct(&odev.v, &stdview); |
| 172 |
> |
odev.v = stdview; |
| 173 |
|
odev.name = id; |
| 174 |
|
odev.v.type = VT_PER; |
| 175 |
|
odev.v.horiz = 2.*180./PI * atan(0.5/VIEWDIST*pwidth*odev.hres); |
| 207 |
|
tan(PI/180./2.*nv->vert); |
| 208 |
|
XResizeWindow(ourdisplay, gwind, odev.hres, odev.vres); |
| 209 |
|
} |
| 210 |
< |
copystruct(&odev.v, nv); |
| 210 |
> |
odev.v = *nv; |
| 211 |
|
} |
| 212 |
|
qtReplant(); |
| 213 |
|
} |
| 468 |
|
double d; |
| 469 |
|
register int i, li; |
| 470 |
|
/* start with old view */ |
| 471 |
< |
copystruct(&nv, &odev.v); |
| 471 |
> |
nv = odev.v; |
| 472 |
|
/* change view direction */ |
| 473 |
|
if (move) { |
| 474 |
|
if ((li = qtFindLeaf(dx, dy)) < 0) |