Skip to content

Commit

Permalink
Simplify dstHeight calculation in GDI PaintImageSlice.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Aug 15, 2024
1 parent b241326 commit c46a1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/gdi/paint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c46a1d5

Please sign in to comment.