diff options
| author | quarrel07 <178681861+quarrel07@users.noreply.github.com> | 2026-07-20 03:14:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-20 12:14:36 +0200 |
| commit | b3e0fe248d9983c5dbd5dcf656d099eeec4d9329 (patch) | |
| tree | f02ce8c9b867ce36f03442e124321694e12026bd /src/engine/tracks/DKJungle.h | |
| parent | 582900a1b9198bc941d139b0374b92a178c27efe (diff) | |
Fix widescreen letterbox/divider left-edge clipping on ARM64 (#709)
* Fix widescreen letterbox/divider left-edge clipping on ARM64
The race-intro letterbox bars (draw_box_fill_wide) and the splitscreen
divider lines fed the float OTRGetDimensionFromLeftEdge result into
gDPFillWideRectangle, whose _SHIFTL packing casts float->unsigned.
Converting a negative float to unsigned is UB: x86 wraps (and the
wide-rect handler's sign extension recovers the value, so the bug is
invisible there), but ARM64 fcvtzu saturates negatives to zero — so on
Apple Silicon the fills started at the 4:3 left edge instead of the
true left edge, leaving a strip of sky visible left of the intro bars
in widescreen. Use the integer OTRGetRectDimensionFrom*Edge getters,
matching the sibling draw_box_wide helpers.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Shorten the fix comment
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'src/engine/tracks/DKJungle.h')
0 files changed, 0 insertions, 0 deletions
