Commit 5a786dec authored by deuce's avatar deuce
Browse files

Fix pixel-based checksum calculation.

parent 6ca4badb
......@@ -3185,10 +3185,10 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
(seq->param_int[2] <= seq->param_int[4]) &&
(seq->param_int[3] <= seq->param_int[5]) &&
(pix = getpixels(
(seq->param_int[3] - 1 + cterm->x)*vparams[vmode].charwidth,
(seq->param_int[2] - 1 + cterm->y)*vparams[vmode].charheight,
(seq->param_int[5] + cterm->x)*vparams[vmode].charwidth - 1,
(seq->param_int[4] + cterm->y)*vparams[vmode].charheight - 1)) != NULL) {
(seq->param_int[3] - 1 + cterm->x - 1)*vparams[vmode].charwidth,
(seq->param_int[2] - 1 + cterm->y - 1)*vparams[vmode].charheight,
(seq->param_int[5] + cterm->x - 1)*vparams[vmode].charwidth - 1,
(seq->param_int[4] + cterm->y - 1)*vparams[vmode].charheight - 1)) != NULL) {
crc = crc16((void *)pix->pixels, sizeof(pix->pixels[0])*pix->width*pix->height);
good = 1;
freepixles(pix);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment