aboutsummaryrefslogtreecommitdiffstats
path: root/src/osk.asm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/osk.asm11
1 files changed, 6 insertions, 5 deletions
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