mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-27 02:10:43 +00:00
Document the BC1 tile row bounds
Signed-off-by: katherinebytes <rebooteduck+kr@gmail.com>
This commit is contained in:
1 parent
14d5083f0f
commit
82cb66e80f
1 file changed
+1
@@ -106,6 +106,7 @@ impl<'a> TiledBc1<'a> {
|
||||
blocks
|
||||
.try_reserve_exact(width * height * BLOCK_BYTES)
|
||||
.map_err(|_| TextureError::AllocationFailed)?;
|
||||
// Construction requires the exact padded length, so each selected tile row is in bounds.
|
||||
for y in 0..height {
|
||||
let row_start =
|
||||
base + (y / TILE_BLOCKS) * tile_row_stride + (y % TILE_BLOCKS) * TILE_ROW_BYTES;
|
||||
|
||||
Reference in new issue
Block a user