Skip to content

Commit

Permalink
Another tab drawing fixes for MSW
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Mar 21, 2024
1 parent 932064f commit 3458741
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Plugin/clAuiBook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,21 @@ class clAuiBookArt : public wxAuiDefaultTabArt

wxPoint bottom_right = tab_rect.GetBottomRight();
wxPoint top_right = tab_rect.GetTopRight();
bottom_right.y += 1;
bottom_right.x += 1;
top_right.x += 1;

wxPoint bottom_left = tab_rect.GetBottomLeft();
wxPoint top_left = tab_rect.GetTopLeft();

#ifndef __WXMSW__
bottom_left.y += 1;
bottom_right.y += 1;
bottom_right.x += 1;
top_right.x += 1;
bottom_left.x -= 1;
top_left.x -= 1;
#endif

#ifdef __WXMSW__
dcref.DrawLine(top_right, top_left);
#endif

dcref.DrawLine(top_left, bottom_left);
dcref.DrawLine(top_right, bottom_right);
Expand Down

0 comments on commit 3458741

Please sign in to comment.