devvga: disable cursor on shutdown avoiding graphics glitches on reboot

This commit is contained in:
cinap_lenrek 2018-08-25 21:44:08 +02:00
parent 82c08a8a44
commit 5c326d9f35

View file

@ -86,6 +86,16 @@ vgareset(void)
conf.monitor = 1;
}
static void
vgashutdown(void)
{
VGAscr *scr;
scr = &vgascreen[0];
if(scr->cur && scr->cur->disable)
scr->cur->disable(scr);
}
static Chan*
vgaattach(char* spec)
{
@ -484,7 +494,7 @@ Dev vgadevtab = {
vgareset,
devinit,
devshutdown,
vgashutdown,
vgaattach,
vgawalk,
vgastat,