made fill no longer off by 1
This commit is contained in:
@@ -595,8 +595,8 @@ nn_Exit ne_gpu_handler(nn_GPURequest *req) {
|
|||||||
w = req->width;
|
w = req->width;
|
||||||
h = req->height;
|
h = req->height;
|
||||||
// prevent CPU DoS
|
// prevent CPU DoS
|
||||||
if(w >= activeBuf->width) w = activeBuf->width - 1;
|
if(w > activeBuf->width) w = activeBuf->width;
|
||||||
if(h >= activeBuf->height) h = activeBuf->height - 1;
|
if(h > activeBuf->height) h = activeBuf->height;
|
||||||
|
|
||||||
p = (ne_Pixel) {
|
p = (ne_Pixel) {
|
||||||
.fg = state->currentFg,
|
.fg = state->currentFg,
|
||||||
|
|||||||
Reference in New Issue
Block a user