Skip to content
Permalink
Browse files

. 避免设置控制台颜色出现闪烁现象。(issues #206)。

  • Loading branch information...
yaya
yaya committed Aug 1, 2019
1 parent 9fc74ea commit 45e75e028db5b282818ea505768a3c325e066cb8
Showing with 5 additions and 1 deletion.
  1. +4 −0 stage2/asm.S
  2. +1 −1 stage2/builtins.c
@@ -15507,6 +15507,10 @@ ENTRY(set_videomode)
// the caller want to confirm AL=0x1B for a successful return.
movb %al, %cs:(0x8000+64) // it is certain CS = 0
1:
xorb %bh, %bh
movb $0, %bl
movw $0x1003, %ax
int $0x10
call EXT_C(real_to_prot)
.code32

@@ -15633,7 +15633,7 @@ struct builtin builtin_graphicsmode =
"graphicsmode",
graphicsmode_func,
BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_SCRIPT | BUILTIN_HELP_LIST,
"graphicsmode [0x12 | 0x6A]",
"graphicsmode [MODE]",
"Display/set the graphics mode number for the next graphics init."
"Return the current graphics mode setting."
};

0 comments on commit 45e75e0

Please sign in to comment.
You can’t perform that action at this time.