- do {
- outputf("RFB: (%d [%d], %d [%d]), %d x %d, line %d",
- state->chunk_xnum, state->chunk_xpos,
- state->chunk_ynum, state->chunk_ypos,
- state->chunk_width, state->chunk_height,
- state->chunk_lindex);
-
- lptr = fb->fbaddr
- + (fb->curmode.xres * fb->curmode.bytestride
- * (state->chunk_ypos + state->chunk_lindex))
- + (state->chunk_xpos * fb->curmode.bytestride);
-
- /* The network card can't DMA from video RAM,
- * so use TCP_WRITE_FLAG_COPY. */
- err = tcp_write(pcb, lptr,
- fb->curmode.bytestride * state->chunk_width,
- TCP_WRITE_FLAG_COPY);
-
- if (err == ERR_OK) {
- state->chunk_lindex += 1;
- }