mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed that Flip=1 is broken in Meter=HISTOGRAM.
This commit is contained in:
parent
a0ae80cd04
commit
46829cbb6f
@ -422,7 +422,7 @@ bool CMeterHistogram::Draw(Graphics& graphics)
|
|||||||
// Cache image/color rectangle for the both lines
|
// Cache image/color rectangle for the both lines
|
||||||
{
|
{
|
||||||
Rect& r = (m_Flip) ?
|
Rect& r = (m_Flip) ?
|
||||||
Rect(x + i, y + bothBarHeight, 1, -bothBarHeight)
|
Rect(x + i, y, 1, bothBarHeight)
|
||||||
: Rect(x + i, y + m_H - bothBarHeight, 1, bothBarHeight);
|
: Rect(x + i, y + m_H - bothBarHeight, 1, bothBarHeight);
|
||||||
|
|
||||||
bothPath.AddRectangle(r); // cache
|
bothPath.AddRectangle(r); // cache
|
||||||
@ -432,7 +432,7 @@ bool CMeterHistogram::Draw(Graphics& graphics)
|
|||||||
if (secondaryBarHeight > primaryBarHeight)
|
if (secondaryBarHeight > primaryBarHeight)
|
||||||
{
|
{
|
||||||
Rect& r = (m_Flip) ?
|
Rect& r = (m_Flip) ?
|
||||||
Rect(x + i, y + secondaryBarHeight, 1, -(secondaryBarHeight - bothBarHeight))
|
Rect(x + i, y + bothBarHeight, 1, secondaryBarHeight - bothBarHeight)
|
||||||
: Rect(x + i, y + m_H - secondaryBarHeight, 1, secondaryBarHeight - bothBarHeight);
|
: Rect(x + i, y + m_H - secondaryBarHeight, 1, secondaryBarHeight - bothBarHeight);
|
||||||
|
|
||||||
secondaryPath.AddRectangle(r); // cache
|
secondaryPath.AddRectangle(r); // cache
|
||||||
@ -440,7 +440,7 @@ bool CMeterHistogram::Draw(Graphics& graphics)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Rect& r = (m_Flip) ?
|
Rect& r = (m_Flip) ?
|
||||||
Rect(x + i, y + primaryBarHeight, 1, -(primaryBarHeight - bothBarHeight))
|
Rect(x + i, y + bothBarHeight, 1, primaryBarHeight - bothBarHeight)
|
||||||
: Rect(x + i, y + m_H - primaryBarHeight, 1, primaryBarHeight - bothBarHeight);
|
: Rect(x + i, y + m_H - primaryBarHeight, 1, primaryBarHeight - bothBarHeight);
|
||||||
|
|
||||||
primaryPath.AddRectangle(r); // cache
|
primaryPath.AddRectangle(r); // cache
|
||||||
@ -449,7 +449,7 @@ bool CMeterHistogram::Draw(Graphics& graphics)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Rect& r = (m_Flip) ?
|
Rect& r = (m_Flip) ?
|
||||||
Rect(x + i, y + primaryBarHeight, 1, -primaryBarHeight)
|
Rect(x + i, y, 1, primaryBarHeight)
|
||||||
: Rect(x + i, y + m_H - primaryBarHeight, 1, primaryBarHeight);
|
: Rect(x + i, y + m_H - primaryBarHeight, 1, primaryBarHeight);
|
||||||
|
|
||||||
primaryPath.AddRectangle(r); // cache
|
primaryPath.AddRectangle(r); // cache
|
||||||
|
Loading…
Reference in New Issue
Block a user