Skip to content

Commit aeefe7c

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
1 parent a71bb24 commit aeefe7c

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
@@ -3715,7 +3715,9 @@ void TPad::PaintBorder(Color_t color, Bool_t /* tops */)
37153715
pp->SetAttFill({color, 1001}); // use fill color producing opacity
37163716
pp->SetOpacity(style - 4000);
37173717
}
3718-
} else if ((color == 10) && (style > 3000) && (style < 3100))
3718+
} else if ((style >= 4000) && (style <= 4100) && pp->IsCocoa() && (this == fMother))
3719+
style = 1001;
3720+
else if ((color == 10) && (style > 3000) && (style < 3100))
37193721
color = 1;
37203722

37213723
if (do_paint_box) {

0 commit comments

Comments
 (0)