more work on gtk & code cleanup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
namespace Pilz.UI.WinForms;
|
||||
|
||||
@@ -61,9 +60,11 @@ public class DisplayHelp
|
||||
else
|
||||
{
|
||||
using var brush = CreateLinearGradientBrush(r, color1, color2, gradientAngle);
|
||||
var blend = new Blend(factors.Length);
|
||||
blend.Factors = factors;
|
||||
blend.Positions = positions;
|
||||
var blend = new Blend(factors.Length)
|
||||
{
|
||||
Factors = factors,
|
||||
Positions = positions
|
||||
};
|
||||
brush.Blend = blend;
|
||||
g.FillRectangle(brush, r);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user