diff --git a/sys/src/cmd/vmx/vga.c b/sys/src/cmd/vmx/vga.c index 05895d1f7..de0546856 100644 --- a/sys/src/cmd/vmx/vga.c +++ b/sys/src/cmd/vmx/vga.c @@ -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;