mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
cb1faee85d
PR: 4040 Suggested by: Hideyuki Suzuki <hideyuki@sat.t.u-tokyo.ac.jp>
12 lines
405 B
Plaintext
12 lines
405 B
Plaintext
--- src/display/vga.c Sun Jan 26 18:05:00 1997
|
|
+++ src/display/vga.c Mon Apr 7 10:37:35 1997
|
|
@@ -382,7 +382,7 @@
|
|
/* if (!code) return;*/
|
|
VgaSetColor(fc);
|
|
if (bc & 0x8) *(vcls - dInfo.glineByte) = 0;
|
|
- for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
|
|
+ if (code) for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
|
|
if (*code) {
|
|
VgaOutByte(*code);
|
|
*gram = *gram;
|