Permalink
Browse files

gui: let alternating circle pattern be btb or wtw if possible

Note, wtw/btb is only possible in limited color range
  • Loading branch information...
1 parent c6ded8c commit b1105f747b6d2042f6d13917d2af0bd0cb232716 @elupus elupus committed Jan 8, 2014
Showing with 4 additions and 4 deletions.
  1. +2 −2 xbmc/rendering/dx/GUIWindowTestPatternDX.cpp
  2. +2 −2 xbmc/rendering/gl/GUIWindowTestPatternGL.cpp
@@ -199,14 +199,14 @@ void CGUIWindowTestPatternDX::DrawContrastBrightnessPattern(int top, int left, i
if (m_blinkFrame < TEST_PATTERNS_BLINK_CYCLE / 2)
color = D3DCOLOR_COLORVALUE(m_black + 0.05f, m_black + 0.05f, m_black + 0.05f, 1.0f);
else
- color = D3DCOLOR_COLORVALUE(m_black, m_black, m_black, 1.0f);
+ color = D3DCOLOR_COLORVALUE(0.0f, 0.0f, 0.0f, 1.0f); // BTB
DrawCircleEx(x25p, y75p, (y37p - y12p) / 3, color);
DrawCircleEx(x75p, y25p, (y37p - y12p) / 3, color);
if (m_blinkFrame < TEST_PATTERNS_BLINK_CYCLE / 2)
color = D3DCOLOR_COLORVALUE(m_white - 0.05f, m_white - 0.05f, m_white - 0.05f, 1.0f);
else
- color = D3DCOLOR_COLORVALUE(m_white, m_white, m_white, 1.0f);
+ color = D3DCOLOR_COLORVALUE(1.0f, 1.0f, 1.0f, 1.0f); // WTW
DrawCircleEx(x25p, y25p, (y37p - y12p) / 3, color);
DrawCircleEx(x75p, y75p, (y37p - y12p) / 3, color);
}
@@ -154,14 +154,14 @@ void CGUIWindowTestPatternGL::DrawContrastBrightnessPattern(int top, int left, i
if (m_blinkFrame < TEST_PATTERNS_BLINK_CYCLE / 2)
glColor3f(m_black + 0.05f, m_black + 0.05f, m_black + 0.05f);
else
- glColor3f(m_black, m_black, m_black);
+ glColor3f(0.0f, 0.0f, 0.0f); //BTB
DrawCircle(x25p, y75p, (y37p - y12p) / 3);
DrawCircle(x75p, y25p, (y37p - y12p) / 3);
if (m_blinkFrame < TEST_PATTERNS_BLINK_CYCLE / 2)
glColor3f(m_white - 0.05f, m_white - 0.05f, m_white - 0.05f);
else
- glColor3f(m_white, m_white, m_white);
+ glColor3f(1.0f, 1.0f, 1.0f); //WTW
DrawCircle(x25p, y25p, (y37p - y12p) / 3);
DrawCircle(x75p, y75p, (y37p - y12p) / 3);
}

0 comments on commit b1105f7

Please sign in to comment.