mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 14:17:41 +02:00
Fix bevels on vertical rulers
This commit is contained in:
parent
bc5aed7465
commit
68cbd4fbfe
@ -503,7 +503,7 @@ void TrackArtist::DrawVRuler(Track *t, wxDC * dc, wxRect & rect)
|
|||||||
// But give it a beveled area
|
// But give it a beveled area
|
||||||
if (kind == Track::Label) {
|
if (kind == Track::Label) {
|
||||||
wxRect bev = rect;
|
wxRect bev = rect;
|
||||||
bev.Inflate(-1, -1);
|
bev.Inflate(-1, 0);
|
||||||
bev.width += 1;
|
bev.width += 1;
|
||||||
AColor::BevelTrackInfo(*dc, true, bev);
|
AColor::BevelTrackInfo(*dc, true, bev);
|
||||||
|
|
||||||
@ -513,7 +513,7 @@ void TrackArtist::DrawVRuler(Track *t, wxDC * dc, wxRect & rect)
|
|||||||
// Time tracks
|
// Time tracks
|
||||||
if (kind == Track::Time) {
|
if (kind == Track::Time) {
|
||||||
wxRect bev = rect;
|
wxRect bev = rect;
|
||||||
bev.Inflate(-1, -1);
|
bev.Inflate(-1, 0);
|
||||||
bev.width += 1;
|
bev.width += 1;
|
||||||
AColor::BevelTrackInfo(*dc, true, bev);
|
AColor::BevelTrackInfo(*dc, true, bev);
|
||||||
|
|
||||||
@ -537,7 +537,7 @@ void TrackArtist::DrawVRuler(Track *t, wxDC * dc, wxRect & rect)
|
|||||||
// The ruler needs a bevelled surround.
|
// The ruler needs a bevelled surround.
|
||||||
if (kind == Track::Wave) {
|
if (kind == Track::Wave) {
|
||||||
wxRect bev = rect;
|
wxRect bev = rect;
|
||||||
bev.Inflate(-1, -1);
|
bev.Inflate(-1, 0);
|
||||||
bev.width += 1;
|
bev.width += 1;
|
||||||
AColor::BevelTrackInfo(*dc, true, bev);
|
AColor::BevelTrackInfo(*dc, true, bev);
|
||||||
|
|
||||||
@ -566,9 +566,7 @@ void TrackArtist::DrawVRuler(Track *t, wxDC * dc, wxRect & rect)
|
|||||||
dc->SetBrush(*wxWHITE_BRUSH);
|
dc->SetBrush(*wxWHITE_BRUSH);
|
||||||
wxRect bev = rect;
|
wxRect bev = rect;
|
||||||
bev.x++;
|
bev.x++;
|
||||||
bev.y++;
|
|
||||||
bev.width--;
|
bev.width--;
|
||||||
bev.height--;
|
|
||||||
dc->DrawRectangle(bev);
|
dc->DrawRectangle(bev);
|
||||||
|
|
||||||
rect.y += 1;
|
rect.y += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user