Improve readibility by including a shadow on slider labels.
parent
c0ea6348bc
commit
f97c3d1a71
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue