Skip to content
Snippets Groups Projects
Commit 18607b08 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fixx off-by-one in last commit.

Stupid 1-based coordinates.
parent c625f2e6
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4228 passed
......@@ -1160,11 +1160,11 @@ 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
|| (tox + width - 1) > cio_textinfo.screenwidth
|| y>cio_textinfo.screenheight
|| ey>cio_textinfo.screenheight
|| toy>cio_textinfo.screenheight
|| toy + height > cio_textinfo.screenheight
|| (toy + height - 1) > cio_textinfo.screenheight
) {
return(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment