This is an automated email from the ASF dual-hosted git repository.

linguini1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit b30fe55fe050d848203af0620919693162a82777
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Fri May 1 08:51:28 2026 -0300

    arch/x86: Replace planar pixel copy with linear copy
    
    The planar copy was used even when linar mode was used (chain4 = 1)
    Probably this modification could impact VGA text mode, but for now
    it is not important, since the goal is get graphic mode working.
    
    Signed-off-by: Alan C. Assis <[email protected]>
---
 arch/x86/src/qemu/qemu_vga.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/x86/src/qemu/qemu_vga.c b/arch/x86/src/qemu/qemu_vga.c
index fb2a5218d5f..4e80a7818ac 100644
--- a/arch/x86/src/qemu/qemu_vga.c
+++ b/arch/x86/src/qemu/qemu_vga.c
@@ -485,12 +485,7 @@ static ssize_t vga_write(struct file *filep, const char 
*buf,
 
   for (j = 0; j < buflen && g_curpos < VGA_FBSIZE; j++)
     {
-      uint8_t dots = buf[j];
-      for (i = 0; i < 8 && g_curpos < VGA_FBSIZE; i++)
-        {
-          g_pscreen[g_curpos++] = dots & 0x80 ? g_fg_color : g_bg_color;
-          dots <<= 1;
-        }
+      g_pscreen[g_curpos++] = (uint8_t)buf[j];
     }
 
   return buflen;

Reply via email to