Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] vesa blanking

2 views
Skip to first unread message

erik quanstrom

unread,
Dec 9, 2009, 11:05:55 PM12/9/09
to
this trivial code implements blanking for vesa.

- erik

----

; diffy -c vgavesa.c
/n/dump/2009/1209/sys/src/9/pc/vgavesa.c:157,162 - vgavesa.c:157,182
}
}

+ static void
+ vesablank(VGAscr *scr, int blank)
+ {
+ Ureg u;
+
+ vbesetup(&u, 0x4f10);
+ if(blank)
+ u.bx = 0x0101;
+ else
+ u.bx = 0x0001;
+ vbecall(&u);
+ }
+
+ static void
+ vesadrawinit(VGAscr *scr)
+ {
+ scr->blank = vesablank;
+ hwblank = 1;
+ }
+
VGAdev vgavesadev = {
"vesa",
0,
/n/dump/2009/1209/sys/src/9/pc/vgavesa.c:163,169 - vgavesa.c:183,189
0,
0,
vesalinear,
- 0,
+ vesadrawinit,
0,
0,
0,

0 new messages