From 391833f8c611a206ed8d3f8483356a42e9890aa9 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 18 Jul 2026 00:31:27 +0200 Subject: term: dark mode - black background, white text (OSK highlight inverts to match) --- src/osk.asm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/osk.asm') diff --git a/src/osk.asm b/src/osk.asm index 609f6be..f5d99ac 100644 --- a/src/osk.asm +++ b/src/osk.asm @@ -68,16 +68,17 @@ osk_disp: ; starts disabled. ; ----------------------------------------------------------------------------- osk_init:: - ; CGB BG palette 1 = inverted: color0 black, color1 white + ; CGB BG palette 1 = inverse of the dark terminal palette 0: color0 white, + ; color1 black - the highlighted OSK key reads as light-on-dark's opposite ld a, $88 ; BCPS index 8 (palette 1, color 0), auto-inc ld [rBCPS], a - xor a - ld [rBCPD], a - ld [rBCPD], a ; c0 = $0000 black ld a, $FF ld [rBCPD], a ld a, $7F - ld [rBCPD], a ; c1 = $7FFF white + ld [rBCPD], a ; c0 = $7FFF white + xor a + ld [rBCPD], a + ld [rBCPD], a ; c1 = $0000 black ; build the key tiles (no cursor underline) xor a -- cgit v1.3.1-sl0p