used standard OC colors

apparently they changed this a long time ago
This commit is contained in:
IonutParau 2025-07-26 16:02:55 +02:00
parent eb6037ee27
commit e9e02a2473
2 changed files with 3 additions and 3 deletions

View File

@ -338,8 +338,8 @@ nn_component *nn_addScreen(nn_computer *computer, nn_address address, int slot,
return nn_newComponent(computer, address, slot, screenTable, screen); return nn_newComponent(computer, address, slot, screenTable, screen);
} }
static const int nni_mcBlack = 0x1D1D21; static const int nni_mcBlack = 0x000000;
static const int nni_mcWhite = 0xFFF9FE; static const int nni_mcWhite = 0xFFFFFF;
void nn_getStd4BitPalette(int color[16]) { void nn_getStd4BitPalette(int color[16]) {
color[0] = nni_mcWhite; // white color[0] = nni_mcWhite; // white

View File

@ -739,7 +739,7 @@ int main(int argc, char **argv) {
int maxWidth = 80, maxHeight = 32; int maxWidth = 80, maxHeight = 32;
nn_screen *s = nn_newScreen(&ctx, maxWidth, maxHeight, 24, 16, 256); 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_addKeyboard(s, "shitty keyboard");
nn_mountKeyboard(computer, "shitty keyboard", 2); nn_mountKeyboard(computer, "shitty keyboard", 2);
nn_addScreen(computer, NULL, 2, s); nn_addScreen(computer, NULL, 2, s);