Improve readibility by including a shadow on slider labels.

This commit is contained in:
2013-02-05 18:31:01 +00:00
parent c0ea6348bc
commit f97c3d1a71

View File

@@ -222,10 +222,13 @@ void VSlider::OnPaint(const PUi *pui) const
glPushMatrix();
// glColor4f(colour.r, colour.g, colour.b, colour.a);
glColor4f(1, 1, 1, 1);
glTranslatef(x + w * 0.5f, y - 4, 0);
glScalef(.5f, -.5f, 1);
glTranslatef(cx * ox, -cy * oy, 0);
glColor4f(0, 0, 0, 1);
pui->font->Render(tmp);
glTranslatef(0, 2, 0);
glColor4f(1, 1, 1, 1);
pui->font->Render(tmp);
glPopMatrix();