devvga: disable cursor on shutdown avoiding graphics glitches on reboot
This commit is contained in:
parent
82c08a8a44
commit
5c326d9f35
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue