Improve readibility by including a shadow on slider labels.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user