summaryrefslogtreecommitdiff
path: root/Kernel/TTY/VirtualConsole.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-03 19:06:41 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-03 19:06:41 +0200
commitea9ac3155d1774f13ac4e9a96605c0e85a8f299e (patch)
tree79965fb23c2c75ae48fcbf1300e40671ea90f0df /Kernel/TTY/VirtualConsole.cpp
parentb139fb9f383911130336ac995cd2671662f9c963 (diff)
downloadserenity-ea9ac3155d1774f13ac4e9a96605c0e85a8f299e.zip
Unicode: s/codepoint/code_point/g
Unicode calls them "code points" so let's follow their style.
Diffstat (limited to 'Kernel/TTY/VirtualConsole.cpp')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index c8eac8da6a..32600965d9 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -287,10 +287,10 @@ void VirtualConsole::flush_dirty_lines()
if (!line.is_dirty() && !m_terminal.m_need_full_flush)
continue;
for (size_t column = 0; column < line.length(); ++column) {
- u32 codepoint = line.codepoint(column);
+ u32 code_points = line.code_points(column);
auto attribute = line.attributes()[column];
u16 vga_index = (visual_row * 160) + (column * 2);
- m_current_vga_window[vga_index] = codepoint < 128 ? codepoint : '?';
+ m_current_vga_window[vga_index] = code_points < 128 ? code_points : '?';
m_current_vga_window[vga_index + 1] = attribute_to_vga(attribute);
}
line.set_dirty(false);