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

front
Sigrid 2020-08-10 16:38:26 +02:00
parent ac4e21f52d
commit 6e039d7b49
1 changed files with 1 additions and 0 deletions

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;