vmx: does not do well with certain fb widths, so restrict it

This commit is contained in:
Sigrid 2020-08-10 16:38:26 +02:00
parent ac4e21f52d
commit 6e039d7b49

View file

@ -704,6 +704,7 @@ vgafbparse(char *fbstring)
q = vgamodeparse(p, &m);
if(p == q || m->w <= 0 || m->h <= 0)
no: sysfatal("invalid mode specifier");
m->w &= ~7;
m->hbytes = chantodepth(m->chan) * m->w + 7 >> 3;
m->sz = m->hbytes * m->h;
if(m->sz > fbsz) fbsz = m->sz;