corrected line / column permutation in CF633_flush

This commit is contained in:
marschap
2005-05-17 09:36:44 +00:00
parent c6b010848f
commit e2cd8a6b0e
+3 -3
View File
@@ -476,15 +476,15 @@ CFontz633_flush (Driver * drvthis)
// send the difference to the screen // send the difference to the screen
diff_length = j - first_diff; diff_length = j - first_diff;
out[0] = i; out[1] = i; // line
out[1] = first_diff; out[0] = first_diff; // column
debug (RPT_INFO,"WriteDiff: l=%d c=%d count=%d string='%.*s'", debug (RPT_INFO,"WriteDiff: l=%d c=%d count=%d string='%.*s'",
out[0], out[1], diff_length, diff_length, out[0], out[1], diff_length, diff_length,
&p->framebuf[first_diff + (i * p->width)] ); &p->framebuf[first_diff + (i * p->width)] );
memcpy(&out[2], &p->framebuf[first_diff + (i * p->width)], diff_length ); memcpy(&out[2], &p->framebuf[first_diff + (i * p->width)], diff_length );
send_bytes_message(p->fd, diff_length+2, CF633_Send_Data_to_LCD, out); send_bytes_message(p->fd, diff_length + 2, CF633_Send_Data_to_LCD, out);
} }
} // j < p->width } // j < p->width
} // i < p->height } // i < p->height