File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -243,9 +243,9 @@ namespace mlx
243
243
if (moving_x >= static_cast <std::uint32_t >(x + w) || moving_x >= m_width)
244
244
{
245
245
moving_x = x;
246
+ moving_y++;
246
247
if (moving_y >= static_cast <std::uint32_t >(y + h) || moving_y >= m_height)
247
248
break ;
248
- moving_y++;
249
249
}
250
250
if constexpr (std::endian::native == std::endian::little)
251
251
m_staging_buffer->GetMap <mlx_color*>()[(moving_y * m_width) + moving_x] = ReverseColor (pixels[i]);
@@ -304,9 +304,9 @@ namespace mlx
304
304
if (moving_x >= static_cast <std::uint32_t >(x + w) || moving_x >= m_width)
305
305
{
306
306
moving_x = x;
307
+ moving_y++;
307
308
if (moving_y >= static_cast <std::uint32_t >(y + h) || moving_y >= m_height)
308
309
break ;
309
- moving_y++;
310
310
}
311
311
if constexpr (std::endian::native == std::endian::little)
312
312
dst[i] = ReverseColor (m_staging_buffer->GetMap <mlx_color*>()[(moving_y * m_width) + moving_x]);
You can’t perform that action at this time.
0 commit comments