diff --git a/mini.cpp b/mini.cpp index 694d173..3ce8ebe 100644 --- a/mini.cpp +++ b/mini.cpp @@ -403,6 +403,7 @@ int main(int argc,char*argv[]){ void simple_pset(int x, int y, uint8_t color) { x -= ds::cam[0]; y -= ds::cam[1]; if (x < ds::clip[0] || x >= ds::clip[2] || y < ds::clip[1] || y >= ds::clip[3]) return; + if (x < 0 || x >= dest_surface->w || y < 0 || y >= dest_surface->h) return; DEST(x, y) = color; } diff --git a/version.h b/version.h index b490715..002bb90 100644 --- a/version.h +++ b/version.h @@ -1,3 +1,3 @@ #pragma once -#define MINI_VERSION "0.9.78d" +#define MINI_VERSION "0.9.79d"