566 |
|
inpresflags |= DFL(DC_RESUME); |
567 |
|
return; |
568 |
|
case CTRL('R'): /* redraw screen */ |
569 |
+ |
if (nxtzmax > FTINY) { |
570 |
+ |
curzmax = nxtzmax; |
571 |
+ |
nxtzmax = 0.; |
572 |
+ |
} |
573 |
|
glClear(GL_DEPTH_BUFFER_BIT); |
574 |
|
qtRedraw(0, 0, odev.hres, odev.vres); |
575 |
|
return; |
576 |
|
case CTRL('L'): /* refresh from server */ |
577 |
|
if (inpresflags & DFL(DC_REDRAW)) |
578 |
|
return; |
579 |
+ |
if (nxtzmax > FTINY) { |
580 |
+ |
curzmax = nxtzmax; |
581 |
+ |
nxtzmax = 0.; |
582 |
+ |
} |
583 |
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |
584 |
|
draw_grids(); |
585 |
|
glFlush(); |