File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ void console_init(console_screen_t **ci)
23
23
}
24
24
25
25
void console_set_colors (console_color_t fg , console_color_t bg ) {
26
- if (bg == COLOR_NONE && fg == COLOR_NONE ) {
26
+ if (console == NULL || ( bg == COLOR_NONE && fg == COLOR_NONE ) ) {
27
27
return ;
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ typedef enum _console_color {
38
38
COLOR_BRIGHT_WHITE = 0xf
39
39
} console_color_t ;
40
40
41
- console_screen_t * console ;
41
+ extern console_screen_t * console ;
42
42
43
43
/**
44
44
* @brief
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ const FILETIME ft_preserved = {
73
73
0xFFFFFFFF
74
74
};
75
75
76
+ console_screen_t * console ;
77
+
76
78
/*!
77
79
* @brief
78
80
* Prints program usage information.
You can’t perform that action at this time.
0 commit comments