Skip to content
Snippets Groups Projects
Commit a172bd4d authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add silly check to make coverity happy.

This is in the fastpath, but it's on the slow side where I don't
mind the occasional extra silly check.
parent d1f8b8df
No related branches found
No related tags found
No related merge requests found
Pipeline #8002 passed
......@@ -779,7 +779,7 @@ draw_char_row_slow(struct blockstate *bs, struct charstate *cs, uint32_t y)
for(unsigned x = 0; x < vstat.charwidth; x++) {
unsigned bitnum = x & 0x07;
if (bs->expand && x == bs->font_data_width) {
if (cs->gexpand)
if (cs->gexpand && x > 0)
fbb = cs->font[cs->fontoffset - 1] & (0x80 >> ((x - 1) & 7));
else
fbb = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment