1);
visual_g = DefaultVisual(disp_g, screen_g);
- pl_extract_view (view, pano, pitch, yaw, fov);
+ pl_extract_view (view, pano, pitch, yaw, fov, BILINEAR);
draw_window (view);
done = 0;
case ConfigureNotify:
{
XConfigureEvent *cev = (XConfigureEvent *) &event;
- printf ("XConfigureEvent received: width = %i; height = %i;\n",
- cev->width, cev->height);
ui_destroy (view);
view = ui_create (cev->width, cev->height);
case ButtonRelease:
btn_current_pressed = 0;
+ /* Re-draw the image (when no button is pressed better interpolation is
+ * used. */
+ isChanged = 1;
break;
case MotionNotify:
if (isChanged != 0)
{
- pl_extract_view (view, pano, pitch, yaw, fov);
+ pl_extract_view (view, pano, pitch, yaw, fov,
+ (btn_current_pressed == 0) ? BILINEAR : NNEIGHBOUR);
draw_window (view);
}
} /* while (done == 0) */