From 9169020ad292636f18b60fe8b530fc5ab2b672b3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 27 Dec 2022 18:29:51 +0200 Subject: [PATCH] Kernel: Remove unnecessary checks from GraphicsPutCharAt() --- kernel/arch/i386/VESA.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/arch/i386/VESA.cpp b/kernel/arch/i386/VESA.cpp index c83ff503..dc483f76 100644 --- a/kernel/arch/i386/VESA.cpp +++ b/kernel/arch/i386/VESA.cpp @@ -173,11 +173,9 @@ namespace VESA uint32_t row_offset = (fy * s_pitch) + (fx * (s_bpp / 8)); for (uint32_t gy = 0; gy < font.Height; gy++) { - if (fy + gy >= s_height) break; uint32_t pixel_offset = row_offset; for (uint32_t gx = 0; gx < font.Width; gx++) { - if (fx + gx >= s_width) break; GraphicsSetPixel(pixel_offset, (glyph[gy] & (1 << (font.Width - gx - 1))) ? u32_fg : u32_bg); pixel_offset += s_bpp / 8; }