ref: 5c326d9f3566be32af7b18d2638fd8d26b169e31
parent: 82c08a8a4469c4b4ba515d74addc7aac747a17d9
author: cinap_lenrek <[email protected]>
date: Sat Aug 25 17:44:08 EDT 2018
devvga: disable cursor on shutdown avoiding graphics glitches on reboot
--- a/sys/src/9/pc/devvga.c
+++ b/sys/src/9/pc/devvga.c
@@ -86,6 +86,16 @@
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 @@
vgareset,
devinit,
- devshutdown,
+ vgashutdown,
vgaattach,
vgawalk,
vgastat,