mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-17 19:00:25 +02:00
rasterizer_xbox_bitmap_rebuild_hardware_format pads a linear bitmap's rows to 64 bytes, rounding up; the texture header rounded its pitch down, so a Custom Edition bitmap whose rows were not a whole multiple was drawn skewed. The header now rounds up too (Xbox maps' rows always are a multiple, so they are unchanged). The texture header's pitch only: OpenCE never had the misalignment log the commit's custom_edition_bitmaps.c part removes. (cherry picked from commit 90a057778f76eb96d45a112b95be2a0c1e1d69a2)