mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed an issue that GradientAngle doesn't work correctly in some GradientAngle values when AntiAlias=0.
This commit is contained in:
parent
4b30714520
commit
251beb9e3a
@ -827,8 +827,19 @@ bool CMeter::Draw(Graphics& graphics)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!m_AntiAlias)
|
||||
{
|
||||
// Fix the tiling issue in some GradientAngle values
|
||||
graphics.SetPixelOffsetMode(PixelOffsetModeHalf);
|
||||
}
|
||||
|
||||
LinearGradientBrush gradient(r, m_SolidColor, m_SolidColor2, m_SolidAngle, TRUE);
|
||||
graphics.FillRectangle(&gradient, r);
|
||||
|
||||
if (!m_AntiAlias)
|
||||
{
|
||||
graphics.SetPixelOffsetMode(PixelOffsetModeDefault);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user