Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 11, 2013
1 parent 57543a6 commit 451332e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doomsday/client/src/ui/widgets/togglewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ DENG2_OBSERVES(ButtonWidget, Press)

void glMakeGeometry(DefaultVertexBuf::Builder &verts, Rectanglef const &rect)
{
//ColorBank::Colorf const &textColor = style().colors().colorf("text");
ColorBank::Colorf const &accentColor = style().colors().colorf("accent");

// Clamp the position to non-fractional coordinates.
Expand All @@ -77,8 +76,7 @@ DENG2_OBSERVES(ButtonWidget, Press)
Id onOff = _owner.root().toggleOnOff();

// The on/off graphic.
verts.makeQuad(recti, accentColor * (5 + _pos) / 6, // * _pos + accentColor * .5f * (1 - _pos),
atlas().imageRectf(onOff));
verts.makeQuad(recti, accentColor * (5 + _pos) / 6, atlas().imageRectf(onOff));

// The flipper.
int flipWidth = size().x - size().y + 2;
Expand Down

0 comments on commit 451332e

Please sign in to comment.