Skip to content

Commit

Permalink
[Screen Ruler] Fix measuring of single lines (#20201)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Aug 31, 2022
1 parent 6e51595 commit 7001d8c
Showing 1 changed file with 0 additions and 7 deletions.
Expand Up @@ -193,13 +193,6 @@ void DrawMeasureToolTick(const CommonState& commonState,
const float hMeasure = static_cast<float>(measuredEdges.right - measuredEdges.left + 1);
const float vMeasure = static_cast<float>(measuredEdges.bottom - measuredEdges.top + 1);

// Prevent drawing until we get the first capture
const bool hasMeasure = (measuredEdges.right != measuredEdges.left) && (measuredEdges.bottom != measuredEdges.top);
if (!hasMeasure)
{
return;
}

if (!continuousCapture && backgroundBitmap)
{
d2dState.rt->DrawBitmap(backgroundBitmap.get());
Expand Down

0 comments on commit 7001d8c

Please sign in to comment.