Skip to content

Commit ca5e26c

Browse files
committed
[gpad] transparent canvas color on Mac
When transparent style is specified, canvas must be filled with 1001 fill style to properly clear all previous drawings. Logic was previosely implemented in TPad::PaintBox and was not properly moved to TPad::PaintBorder (cherry picked from commit aeefe7c)
1 parent d7b8832 commit ca5e26c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

graf2d/gpad/src/TPad.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3680,7 +3680,9 @@ void TPad::PaintBorder(Color_t color, Bool_t /* tops */)
36803680
pp->SetAttFill({color, 1001}); // use fill color producing opacity
36813681
pp->SetOpacity(style - 4000);
36823682
}
3683-
} else if ((color == 10) && (style > 3000) && (style < 3100))
3683+
} else if ((style >= 4000) && (style <= 4100) && pp->IsCocoa() && (this == fMother))
3684+
style = 1001;
3685+
else if ((color == 10) && (style > 3000) && (style < 3100))
36843686
color = 1;
36853687

36863688
if (do_paint_box) {

0 commit comments

Comments
 (0)