Skip to content
Snippets Groups Projects
Commit 7e52db00 authored by deuce's avatar deuce
Browse files

Clean up sixel position init.

parent e8e2e508
No related branches found
No related tags found
No related merge requests found
......@@ -2953,16 +2953,8 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
for(j=0; j<seq->param_int[0]; j++)
scrolldown(cterm);
break;
#if 0
case 'U': /* Next Page */
GETTEXTINFO(&ti);
cterm_clearscreen(cterm, ti.normattr);
if(cterm->extattr & CTERM_EXTATTR_ORIGINMODE)
GOTOXY(1,cterm->top_margin);
else
GOTOXY(1,1);
case 'U': /* TODO? Next Page */
break;
#endif
case 'V': /* TODO? Preceding Page */
break;
case 'W': /* TODO? Cursor Tabulation Control */
......@@ -4023,14 +4015,11 @@ static void parse_sixel_intro(struct cterminal *cterm)
}
attr2palette(ti.attribute, &cterm->sx_fg, &cterm->sx_bg);
if (cterm->extattr & CTERM_EXTATTR_SXSCROLL) {
cterm->sx_x = cterm->sx_start_x *= vparams[vmode].charwidth;
cterm->sx_y = cterm->sx_start_y *= vparams[vmode].charwidth;
TERM_XY(&cterm->sx_start_x, &cterm->sx_start_y);
cterm->sx_start_x *= vparams[vmode].charwidth;
cterm->sx_start_y *= vparams[vmode].charwidth;
cterm->sx_x = cterm->sx_start_x;
cterm->sx_y = cterm->sx_start_y;
}
else {
// TODO: Why aren't these multipled by width/height?
cterm->sx_x = cterm->sx_left = cterm->sx_y = 0;
TERM_XY(&cterm->sx_start_x, &cterm->sx_start_y);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment