very little progress

This commit is contained in:
IonutParau 2025-06-01 21:32:01 +02:00
parent 1db76cda57
commit 76993bc971
2 changed files with 19 additions and 1 deletions

17
src/components/screen.h Normal file
View File

@ -0,0 +1,17 @@
#include "../neonucleus.h"
typedef struct nn_screen {
nn_screenChar *buffer;
nn_guard *lock;
nn_refc refc;
int width;
int height;
int viewportWidth;
int viewportHeight;
int maxWidth;
int maxHeight;
int maxDepth;
int editableColors;
int paletteColors;
int *palette;
} nn_screen;

View File

@ -565,7 +565,8 @@ size_t nn_getKeyboardCount(nn_screen *screen);
void nn_setEditableColors(nn_screen *screen, int count);
int nn_getEditableColors(nn_screen *screen);
void nn_setPaletteColor(nn_screen *screen, int );
void nn_setPaletteColor(nn_screen *screen, int idx, int color);
int nn_getPaletteColor(nn_screen *screen, int idx);
int nn_maxDepth(nn_screen *screen);
int nn_getDepth(nn_screen *screen);