Skip to content

Commit

Permalink
[Mac] GC#fillGradientRectangle don't color for y < 0 eclipse-platform…
Browse files Browse the repository at this point in the history
…#1652

GC#fillGradientRectangle must be applied for negative y too.

Fixes eclipse-platform#1652
  • Loading branch information
csa-smt committed Dec 12, 2024
1 parent 3c1065b commit 61baf36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ public void fillGradientRectangle(int x, int y, int width, int height, boolean v
NSGradient gradient = ((NSGradient)new NSGradient().alloc()).initWithStartingColor(startingColor, endingColor);
NSRect rect = new NSRect();
rect.x = x;
rect.y = y < 0 ? 0 : y;
rect.y = y;
rect.width = width;
rect.height = height;
gradient.drawInRect(rect, vertical ? 90 : 0);
Expand Down

0 comments on commit 61baf36

Please sign in to comment.