Skip to content

Commit ddafb28

Browse files
committed
overlays: decompile PointInBox family (3 funcs)
Byte-exact carve of the reloc-free point-in-box test across ov000 and ov025 (two instances). Returns 1 when a u16 position lies within a u8 x/y/w/h box.
1 parent 8ea8ce3 commit ddafb28

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int func_ov000_020589a0(unsigned short *pos, unsigned char *box) {
2+
if ((unsigned short)(pos[0] - box[0]) < box[2]) {
3+
if ((unsigned short)(pos[1] - box[1]) < box[3]) return 1;
4+
}
5+
return 0;
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int func_ov025_0209d6c4(unsigned short *pos, unsigned char *box) {
2+
if ((unsigned short)(pos[0] - box[0]) < box[2]) {
3+
if ((unsigned short)(pos[1] - box[1]) < box[3]) return 1;
4+
}
5+
return 0;
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int func_ov025_0209e880(unsigned short *pos, unsigned char *box) {
2+
if ((unsigned short)(pos[0] - box[0]) < box[2]) {
3+
if ((unsigned short)(pos[1] - box[1]) < box[3]) return 1;
4+
}
5+
return 0;
6+
}

0 commit comments

Comments
 (0)