Skip to content

Commit

Permalink
Remove unneeded 4 pixel width alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Aug 15, 2024
1 parent 1511d2c commit b241326
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/buffer/out/ImageSlice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b241326

Please sign in to comment.