diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index f2e40cd931675c90a9898aaa932a97b29a00f518..6ba25e90d285e7cf4a7e24f8c80d7330dbe3718c 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -1160,9 +1160,12 @@ int bitmap_movetext(int x, int y, int ex, int ey, int tox, int toy) || x>cio_textinfo.screenwidth || ex>cio_textinfo.screenwidth || tox>cio_textinfo.screenwidth + || tox + width > cio_textinfo.screenwidth || y>cio_textinfo.screenheight || ey>cio_textinfo.screenheight - || toy>cio_textinfo.screenheight) { + || toy>cio_textinfo.screenheight + || toy + height > cio_textinfo.screenheight + ) { return(0); }