\r
//Debug("Cursor flip");\r
\r
- // Sanity 1\r
+ // Sanity check\r
if(giVesaCursorX < 0 || giVesaCursorY < 0\r
- || y*pitch + x + giVT_CharHeight*pitch > (int)gpVesaCurMode->fbSize/4) {\r
+ || y*pitch + x + (giVT_CharHeight-1)*pitch > (int)gpVesaCurMode->fbSize/4) {\r
Log_Notice("VESA", "Cursor OOB (%i,%i)", x, y);\r
giVesaCursorTimer = -1;\r
return;\r