> @@ -781,10 +784,10 @@ static void vnc_dpy_copy(DisplayChangeListener *dcl, > if ((s = w - w_lim) == 0) > break; > } else if (!x) { > - s = (16 - (dst_x % 16)); > + s = (16 - (dst_x % VNC_DIRTY_PIXELS_PER_BIT));
Should it be s = (VNC_DIRTY_PIXELS_PER_BIT - (dst_x % VNC_DIRTY_PIXELS_PER_BIT)); ?