small changes

This commit is contained in:
2025-07-05 13:17:12 +02:00
parent 9df8512716
commit 72abd56b4e
3 changed files with 57 additions and 42 deletions

View File

@@ -156,6 +156,7 @@ void nn_setPixel(nn_screen *screen, int x, int y, nn_scrchr_t pixel) {
if(x >= screen->width) return;
if(y >= screen->height) return;
screen->buffer[x + y * screen->maxWidth] = pixel;
screen->isDirty = true; // stuff changed
}
nn_scrchr_t nn_getPixel(nn_screen *screen, int x, int y) {

View File

@@ -24,7 +24,7 @@ typedef struct nn_screen {
bool isOn;
bool isTouchModeInverted;
bool isPrecise;
bool isDirty; // ooh la laa
bool isDirty;
nn_address keyboards[NN_MAX_SCREEN_KEYBOARDS];
size_t keyboardCount;
} nn_screen;