Skip to content
Snippets Groups Projects
Commit 27046e09 authored by deuce's avatar deuce
Browse files

Add negative value paranoia

parent 6874a594
Branches
Tags
No related merge requests found
......@@ -597,6 +597,8 @@ static void bitmap_draw_cursor()
if(vstat.curs_start<=vstat.curs_end) {
xoffset=(vstat.curs_col-1)*vstat.charwidth;
yoffset=(vstat.curs_row-1)*vstat.charheight;
if(xoffset < 0 || yoffset < 0)
return;
attr=cio_textinfo.attribute&0x0f;
width=vstat.charwidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment