aboutsummaryrefslogtreecommitdiff
path: root/source/arch
diff options
context:
space:
mode:
Diffstat (limited to 'source/arch')
-rw-r--r--source/arch/x86_64/src/video/vga/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/arch/x86_64/src/video/vga/text.cpp b/source/arch/x86_64/src/video/vga/text.cpp
index df61ce6..ad9e46c 100644
--- a/source/arch/x86_64/src/video/vga/text.cpp
+++ b/source/arch/x86_64/src/video/vga/text.cpp
@@ -27,7 +27,7 @@ namespace teachos::arch::video::vga::text
auto clear(attribute attribute) -> void
{
*text_buffer = reinterpret_cast<decltype(text_buffer)::pointer>(default_text_buffer_address);
- std::ranges::generate_n(*text_buffer, 2000, [&]{ return std::pair{' ', attribute}; });
+ std::ranges::fill_n(*text_buffer, 2000, std::pair{' ', attribute});
}
auto write(std::string_view code_points, attribute attribute) -> void