From 01c0715b256912909cb4eef974f97c38aa539527 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Mon, 30 Jun 2025 20:08:53 +0200 Subject: [PATCH] Alex did this credit goes to bro --- src/components/gpu.c | 2 +- src/emulator.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/gpu.c b/src/components/gpu.c index 023e916..2110fa7 100644 --- a/src/components/gpu.c +++ b/src/components/gpu.c @@ -312,7 +312,7 @@ void nni_gpu_fill(nni_gpu *gpu, void *_, nn_component *component, nn_computer *c if(x < 0) x = 0; if(y < 0) y = 0; if(w > gpu->currentScreen->width - x) w = gpu->currentScreen->width - x; - if(h > gpu->currentScreen->height - y) y = gpu->currentScreen->height - y; + if(h > gpu->currentScreen->height - y) h = gpu->currentScreen->height - y; int changes = 0, clears = 0; diff --git a/src/emulator.c b/src/emulator.c index 6cd2105..2aa40bf 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -565,6 +565,8 @@ int main() { memset(release_check_list, 0, sizeof(int)*256); uint8_t release_check_ptr; + SetExitKey(KEY_NULL); + while(true) { if(WindowShouldClose()) break;