diff options
Diffstat (limited to 'src/libplybootsplash/ply-console.c')
-rw-r--r-- | src/libplybootsplash/ply-console.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libplybootsplash/ply-console.c b/src/libplybootsplash/ply-console.c index 7fb92980..fb5a86db 100644 --- a/src/libplybootsplash/ply-console.c +++ b/src/libplybootsplash/ply-console.c | |||
@@ -68,7 +68,7 @@ struct _ply_console | |||
68 | 68 | ||
69 | uint32_t is_open : 1; | 69 | uint32_t is_open : 1; |
70 | uint32_t is_watching_for_vt_changes : 1; | 70 | uint32_t is_watching_for_vt_changes : 1; |
71 | uint32_t should_force_text_mode : 1; | 71 | uint32_t should_ignore_mode_changes : 1; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static bool ply_console_open_device (ply_console_t *console); | 74 | static bool ply_console_open_device (ply_console_t *console); |
@@ -106,8 +106,8 @@ ply_console_set_mode (ply_console_t *console, | |||
106 | assert (console != NULL); | 106 | assert (console != NULL); |
107 | assert (mode == PLY_CONSOLE_MODE_TEXT || mode == PLY_CONSOLE_MODE_GRAPHICS); | 107 | assert (mode == PLY_CONSOLE_MODE_TEXT || mode == PLY_CONSOLE_MODE_GRAPHICS); |
108 | 108 | ||
109 | if (console->should_force_text_mode) | 109 | if (console->should_ignore_mode_changes) |
110 | mode = PLY_CONSOLE_MODE_TEXT; | 110 | return; |
111 | 111 | ||
112 | switch (mode) | 112 | switch (mode) |
113 | { | 113 | { |
@@ -124,10 +124,10 @@ ply_console_set_mode (ply_console_t *console, | |||
124 | } | 124 | } |
125 | 125 | ||
126 | void | 126 | void |
127 | ply_console_force_text_mode (ply_console_t *console, | 127 | ply_console_ignore_mode_changes (ply_console_t *console, |
128 | bool should_force) | 128 | bool should_ignore) |
129 | { | 129 | { |
130 | console->should_force_text_mode = should_force; | 130 | console->should_ignore_mode_changes = should_ignore; |
131 | } | 131 | } |
132 | 132 | ||
133 | static void | 133 | static void |