From e9e02a247367379ffd3e8712afba3bc201e49ca1 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Sat, 26 Jul 2025 16:02:55 +0200 Subject: [PATCH] used standard OC colors apparently they changed this a long time ago --- src/components/screen.c | 4 ++-- src/emulator.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/screen.c b/src/components/screen.c index ca1471c..fc03536 100644 --- a/src/components/screen.c +++ b/src/components/screen.c @@ -338,8 +338,8 @@ nn_component *nn_addScreen(nn_computer *computer, nn_address address, int slot, return nn_newComponent(computer, address, slot, screenTable, screen); } -static const int nni_mcBlack = 0x1D1D21; -static const int nni_mcWhite = 0xFFF9FE; +static const int nni_mcBlack = 0x000000; +static const int nni_mcWhite = 0xFFFFFF; void nn_getStd4BitPalette(int color[16]) { color[0] = nni_mcWhite; // white diff --git a/src/emulator.c b/src/emulator.c index baa9e5a..8a9413d 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -739,7 +739,7 @@ int main(int argc, char **argv) { int maxWidth = 80, maxHeight = 32; nn_screen *s = nn_newScreen(&ctx, maxWidth, maxHeight, 24, 16, 256); - nn_setDepth(s, 4); // looks cool + nn_setDepth(s, 8); // looks cool nn_addKeyboard(s, "shitty keyboard"); nn_mountKeyboard(computer, "shitty keyboard", 2); nn_addScreen(computer, NULL, 2, s);