We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 992cdfe commit 790fb3bCopy full SHA for 790fb3b
Source/Renderer/BigTexture.cpp
@@ -94,7 +94,7 @@ void BigTexture::Update(const Box& updateRegion) {
94
Box intersect = updateRegion.GetIntersection(m_Regions[i]);
95
if (!intersect.IsEmpty()) {
96
std::vector<unsigned char> pixels(std::ceilf(intersect.m_Width) * std::ceilf(intersect.m_Height) * bytesPerPixel);
97
- for (size_t y = 0; y < static_cast<int>(intersect.m_Height); y++) {
+ for (size_t y = 0; y < static_cast<int>(std::ceilf(intersect.m_Height)); y++) {
98
memcpy(
99
pixels.data() + y * static_cast<int>(intersect.m_Width) * bytesPerPixel,
100
m_Bitmap->line[y + intersect.m_Corner.GetFloorIntY()] + intersect.m_Corner.GetFloorIntX(),
0 commit comments