Skip to content
Snippets Groups Projects
Commit 815a00d7 authored by deuce's avatar deuce
Browse files

If we can't get the vmode, don't do sixel stuff.

--coverity
parent 8b03c79b
No related branches found
No related tags found
No related merge requests found
......@@ -3105,6 +3105,10 @@ static void parse_sixel_intro(struct cterminal *cterm)
GETTEXTINFO(&ti);
vmode = find_vmode(ti.currmode);
if (vmode == -1) {
cterm->sixel = SIXEL_INACTIVE;
return;
}
attr2palette(ti.attribute, &cterm->sx_fg, &cterm->sx_bg);
if (cterm->sx_scroll_mode) {
cterm->sx_x = cterm->sx_left = (cterm->x + WHEREX() - 2) * vparams[vmode].charwidth;
......
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