vmx: does not do well with certain fb widths, so restrict it
This commit is contained in:
parent
ac4e21f52d
commit
6e039d7b49
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue