Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 564b687b authored by Chris Ruffin's avatar Chris Ruffin Committed by Dave Airlie
Browse files

drm/bochs: disable video before changing video mode

parent 53d8858b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ void bochs_hw_setmode(struct bochs_device *bochs,

	bochs_vga_writeb(bochs, 0x3c0, 0x20); /* unblank */

	bochs_dispi_write(bochs, VBE_DISPI_INDEX_ENABLE,      0);
	bochs_dispi_write(bochs, VBE_DISPI_INDEX_BPP,         bochs->bpp);
	bochs_dispi_write(bochs, VBE_DISPI_INDEX_XRES,        bochs->xres);
	bochs_dispi_write(bochs, VBE_DISPI_INDEX_YRES,        bochs->yres);