From c8e17721090aa06498b6fd907c6117feafddfa2c Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Sun, 28 Dec 2025 17:40:17 +0600 Subject: [PATCH] [BOOTVID:PC98][PC98VID] Disable the text layer when setting mode (#8539) The previous approach was causing the contents of TVRAM to be visible after boot: https://github.com/user-attachments/assets/df6d2782-4d54-41ab-b4c9-caeb170c4e1e Fixes a regression introduced in 0fa49018cd071e037fad697749c438248ddc40d2. CORE-17977 --- drivers/base/bootvid/i386/pc98/bootvid.c | 3 +++ win32ss/drivers/miniport/pc98vid/hardware.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/base/bootvid/i386/pc98/bootvid.c b/drivers/base/bootvid/i386/pc98/bootvid.c index 37c85cf4fc8..d592d5e7b9d 100644 --- a/drivers/base/bootvid/i386/pc98/bootvid.c +++ b/drivers/base/bootvid/i386/pc98/bootvid.c @@ -219,6 +219,9 @@ InitializeDisplay(VOID) TextSync(); TextSync(); + /* Turn off the text layer */ + WRITE_GDC1_COMMAND(GDC_COMMAND_STOP2); + /* START */ WRITE_GDC2_COMMAND(GDC_COMMAND_BCTRL_START); diff --git a/win32ss/drivers/miniport/pc98vid/hardware.c b/win32ss/drivers/miniport/pc98vid/hardware.c index 1b2ab3ee9e8..dc4fced5031 100644 --- a/win32ss/drivers/miniport/pc98vid/hardware.c +++ b/win32ss/drivers/miniport/pc98vid/hardware.c @@ -227,6 +227,9 @@ Pc98VidSetCurrentMode( TextSync(); TextSync(); + /* Turn off the text layer */ + WRITE_GDC1_COMMAND(GDC_COMMAND_STOP2); + /* START */ WRITE_GDC2_COMMAND(GDC_COMMAND_BCTRL_START);