Skip to content

Commit

Permalink
Use correct height for field view
Browse files Browse the repository at this point in the history
Fixes corrupt image in 1:1 mode
  • Loading branch information
JuniorIsAJitterbug committed Feb 15, 2025
1 parent 791dabf commit 46415eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ld-analyse/tbcsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ QImage TbcSource::generateQImage()
fieldHeight = inputHeight - 1;
}

for (auto y = startingY; y < inputHeight; y++) {
for (auto y = startingY; y < fieldHeight; y++) {
auto *outputLine = reinterpret_cast<QRgb*>(outputImage.scanLine(y + inputOffset));
std::copy_n(&rgbData[fieldY * inputWidth], inputWidth, &outputLine[outputOffset]);

Expand Down

0 comments on commit 46415eb

Please sign in to comment.