diff --git a/src/buffer/out/ImageSlice.cpp b/src/buffer/out/ImageSlice.cpp index 4950682ee89..65809e58a04 100644 --- a/src/buffer/out/ImageSlice.cpp +++ b/src/buffer/out/ImageSlice.cpp @@ -65,7 +65,6 @@ RGBQUAD* ImageSlice::MutablePixels(const til::CoordType columnBegin, const til:: _columnBegin = existingData ? std::min(_columnBegin, columnBegin) : columnBegin; _columnEnd = existingData ? std::max(_columnEnd, columnEnd) : columnEnd; _pixelWidth = (_columnEnd - _columnBegin) * _cellSize.width; - _pixelWidth = (_pixelWidth + 3) & ~3; // Renderer needs this as a multiple of 4 const auto bufferSize = _pixelWidth * _cellSize.height; if (existingData) { diff --git a/src/renderer/gdi/paint.cpp b/src/renderer/gdi/paint.cpp index 17e0f66e4ee..58eca36f843 100644 --- a/src/renderer/gdi/paint.cpp +++ b/src/renderer/gdi/paint.cpp @@ -685,7 +685,7 @@ try const auto srcWidth = imageSlice.PixelWidth(); const auto srcHeight = srcCellSize.height; const auto dstWidth = srcWidth * dstCellSize.width / srcCellSize.width; - const auto dstHeight = srcHeight * dstCellSize.height / srcCellSize.height; + const auto dstHeight = dstCellSize.height; const auto x = (imageSlice.ColumnOffset() - viewportLeft) * dstCellSize.width; const auto y = targetRow * dstCellSize.height;