From 025db7c2c821df51559faf30c40a019c695edfd7 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Fri, 14 Mar 2025 12:41:51 +0100 Subject: [PATCH] yes --- runtime/Sources/Renderer/Image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Sources/Renderer/Image.cpp b/runtime/Sources/Renderer/Image.cpp index 6138f14..ee3ade6 100644 --- a/runtime/Sources/Renderer/Image.cpp +++ b/runtime/Sources/Renderer/Image.cpp @@ -243,9 +243,9 @@ namespace mlx if(moving_x >= static_cast(x + w) || moving_x >= m_width) { moving_x = x; + moving_y++; if(moving_y >= static_cast(y + h) || moving_y >= m_height) break; - moving_y++; } if constexpr(std::endian::native == std::endian::little) m_staging_buffer->GetMap()[(moving_y * m_width) + moving_x] = ReverseColor(pixels[i]); @@ -304,9 +304,9 @@ namespace mlx if(moving_x >= static_cast(x + w) || moving_x >= m_width) { moving_x = x; + moving_y++; if(moving_y >= static_cast(y + h) || moving_y >= m_height) break; - moving_y++; } if constexpr(std::endian::native == std::endian::little) dst[i] = ReverseColor(m_staging_buffer->GetMap()[(moving_y * m_width) + moving_x]);