mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
57f0505bd2
A renderer that keeps a screen X as SX << 16 tests the right edge against a lui-held W << 16 and the left edge with bltz on the shifted value. No explicit [widescreen.cull] kind fits either: bltz_sites compares the whole register with -margin, and a lui at a screen_x site was a build error. screen_x_sites now also takes lui rt, W -> rt = (W + margin) << 16 bltz x, outside -> taken while SX < -margin (x = SX << 16) Both are the identity at 4:3. The helpers are defined for native code and for overlay shards; their math is in ws_cull_edge.h. The two prototypes are written only for a config that lists screen_x_sites, so the generated code of every other title is unchanged.