This commit is contained in:
Julian Barathieu 2020-01-09 12:55:19 +01:00
parent fcf6e745a7
commit d450e1b402
3 changed files with 4 additions and 3 deletions

View File

@ -60,7 +60,7 @@ IoReadATA:
; rdx : the first sector to read ; ; rdx : the first sector to read ;
;-----------------------------------------------------------------------; ;-----------------------------------------------------------------------;
; Technical infos about the ports (Intel Doc): ; Technical info about the ports (Intel Doc):
; ;
; Port Access Mode Misc ; Port Access Mode Misc
; ;

View File

@ -66,7 +66,7 @@ error_t bvgaflusher(Buffer_t *buf)
// Handle color codes // Handle color codes
if (*ptr >= RtlColorToChar(VGA_COLOR_BLACK) if (*ptr >= RtlColorToChar(VGA_COLOR_BLACK)
&& *ptr <= RtlColorToChar(VGA_COLOR_WHITE)) { && *ptr <= RtlColorToChar(VGA_COLOR_WHITE)) {
skip++; cols++; // 'cols' is for scrolling skip++; cols++; // 'cols' (colors) is for scrolling
bfg = RtlCharToColor(*ptr); bfg = RtlCharToColor(*ptr);
} }

View File

@ -58,7 +58,8 @@ int __ctype[] = {
/* 120 */ LW, LW, LW, PT, PT, PT, PT, CT, /* 120 */ LW, LW, LW, PT, PT, PT, PT, CT,
}; };
static_assert(sizeof(__ctype) == 128 * sizeof(int), "ctype table - invalid size"); static_assert(sizeof(__ctype) == 128 * sizeof(int),
"ctype table: invalid size");
int tolower(int c) int tolower(int c)
{ {