Skip to content

Commit

Permalink
. 避免设置控制台颜色出现闪烁现象。(issues #206)。
Browse files Browse the repository at this point in the history
  • Loading branch information
yaya committed Aug 1, 2019
1 parent 9fc74ea commit 45e75e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions stage2/asm.S
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion stage2/builtins.c
Expand Up @@ -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."
};
Expand Down

0 comments on commit 45e75e0

Please sign in to comment.