mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-02 14:50:17 +01:00
Draw v-ruler border in height with affordances
The affordances made parts of the 1px black border between v-ruler and track controls not draw properly. This resulted in graphical glitches where the border should be. Signed-off-by: akleja <storspov@gmail.com>
This commit is contained in:
@@ -1291,6 +1291,13 @@ public:
|
|||||||
context.dc.DrawRectangle(rect);
|
context.dc.DrawRectangle(rect);
|
||||||
wxRect bevel(rect.x, rect.y, rect.width - 1, rect.height - 1);
|
wxRect bevel(rect.x, rect.y, rect.width - 1, rect.height - 1);
|
||||||
AColor::BevelTrackInfo(context.dc, true, bevel, false);
|
AColor::BevelTrackInfo(context.dc, true, bevel, false);
|
||||||
|
// Stroke the left border
|
||||||
|
context.dc.SetPen(*wxBLACK_PEN);
|
||||||
|
{
|
||||||
|
const auto left = rect.GetLeft();
|
||||||
|
AColor::Line( context.dc, left - 1, rect.GetTop(),
|
||||||
|
left - 1, rect.GetBottom() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user