mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 07:39:22 +00:00
2008-08-19 Robert Millan <rmh@aybabtu.com>
* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
(struct grub_virtual_screen): Remove `cursor_color'.
(grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
initialization.
(write_cursor): Use `virtual_screen.fg_color' to draw cursor.
This commit is contained in:
1 parent
dd6bd6abb9
commit
f9dbfc961e
2 files changed
+9
-5
No files matched your search
@@ -1,3 +1,11 @@
|
|||||||
|
2008-08-19 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
|
* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
|
||||||
|
(struct grub_virtual_screen): Remove `cursor_color'.
|
||||||
|
(grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
|
||||||
|
initialization.
|
||||||
|
(write_cursor): Use `virtual_screen.fg_color' to draw cursor.
|
||||||
|
|
||||||
2008-08-18 Robert Millan <rmh@aybabtu.com>
|
2008-08-18 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
Unify (identical) linux_normal.c files.
|
Unify (identical) linux_normal.c files.
|
||||||
|
|||||||
+1
-5
@@ -42,7 +42,6 @@
|
|||||||
#define DEFAULT_STANDARD_COLOR 0x07
|
#define DEFAULT_STANDARD_COLOR 0x07
|
||||||
#define DEFAULT_NORMAL_COLOR 0x07
|
#define DEFAULT_NORMAL_COLOR 0x07
|
||||||
#define DEFAULT_HIGHLIGHT_COLOR 0x70
|
#define DEFAULT_HIGHLIGHT_COLOR 0x70
|
||||||
#define DEFAULT_CURSOR_COLOR 0x07
|
|
||||||
|
|
||||||
struct grub_dirty_region
|
struct grub_dirty_region
|
||||||
{
|
{
|
||||||
@@ -100,7 +99,6 @@ struct grub_virtual_screen
|
|||||||
/* Color settings. */
|
/* Color settings. */
|
||||||
grub_video_color_t fg_color;
|
grub_video_color_t fg_color;
|
||||||
grub_video_color_t bg_color;
|
grub_video_color_t bg_color;
|
||||||
grub_video_color_t cursor_color;
|
|
||||||
|
|
||||||
/* Text buffer for virtual screen. Contains (columns * rows) number
|
/* Text buffer for virtual screen. Contains (columns * rows) number
|
||||||
of entries. */
|
of entries. */
|
||||||
@@ -219,8 +217,6 @@ grub_virtual_screen_setup (unsigned int x, unsigned int y,
|
|||||||
|
|
||||||
set_term_color (virtual_screen.term_color);
|
set_term_color (virtual_screen.term_color);
|
||||||
|
|
||||||
virtual_screen.cursor_color = grub_video_map_color (DEFAULT_CURSOR_COLOR);
|
|
||||||
|
|
||||||
grub_video_set_active_render_target (GRUB_VIDEO_RENDER_TARGET_DISPLAY);
|
grub_video_set_active_render_target (GRUB_VIDEO_RENDER_TARGET_DISPLAY);
|
||||||
|
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
@@ -709,7 +705,7 @@ write_cursor (void)
|
|||||||
width = virtual_screen.char_width;
|
width = virtual_screen.char_width;
|
||||||
height = 2;
|
height = 2;
|
||||||
|
|
||||||
color = virtual_screen.cursor_color;
|
color = virtual_screen.fg_color;
|
||||||
|
|
||||||
/* Render cursor to text layer. */
|
/* Render cursor to text layer. */
|
||||||
grub_video_set_active_render_target (text_layer);
|
grub_video_set_active_render_target (text_layer);
|
||||||
|
|||||||
Reference in new issue
Block a user