176 |
|
DisplayWidth(ourdisplay, ourscreen); |
177 |
|
pheight = (double)DisplayHeightMM(ourdisplay, ourscreen) / |
178 |
|
DisplayHeight(ourdisplay, ourscreen); |
179 |
< |
copystruct(&odev.v, &stdview); |
179 |
> |
odev.v = stdview; |
180 |
|
odev.v.type = VT_PER; |
181 |
|
/* map the window and get its size */ |
182 |
|
XMapWindow(ourdisplay, gwind); |
258 |
|
XResizeWindow(ourdisplay, gwind, odev.hres, odev.vres); |
259 |
|
dev_input(); /* wait for resize event */ |
260 |
|
} |
261 |
< |
copystruct(&odev.v, nv); |
261 |
> |
odev.v = *nv; |
262 |
|
} |
263 |
|
qtReplant(); |
264 |
|
return(1); |
546 |
|
double d; |
547 |
|
register int li; |
548 |
|
/* start with old view */ |
549 |
< |
copystruct(&nv, &odev.v); |
549 |
> |
nv = odev.v; |
550 |
|
/* change view direction */ |
551 |
|
if (mov | orb) { |
552 |
|
if ((li = qtFindLeaf(dx, dy)) < 0) |