From 8915fb3ed05d264be3e25fe256df6cd5638a340c Mon Sep 17 00:00:00 2001 From: IonutParau Date: Sun, 15 Feb 2026 21:38:46 +0100 Subject: [PATCH] made fill no longer off by 1 --- rewrite/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rewrite/main.c b/rewrite/main.c index 2cf9ebc..eccfcc5 100644 --- a/rewrite/main.c +++ b/rewrite/main.c @@ -595,8 +595,8 @@ nn_Exit ne_gpu_handler(nn_GPURequest *req) { w = req->width; h = req->height; // prevent CPU DoS - if(w >= activeBuf->width) w = activeBuf->width - 1; - if(h >= activeBuf->height) h = activeBuf->height - 1; + if(w > activeBuf->width) w = activeBuf->width; + if(h > activeBuf->height) h = activeBuf->height; p = (ne_Pixel) { .fg = state->currentFg,