- if(part.get_name()=="slider")
- {
- unsigned gw=part.get_width();
- unsigned gh=(part.get_fill_y() ? geom.h : part.get_height());
- GL::push_matrix();
- GL::translate((geom.w-gw)*(value-min)/(max-min), (geom.h-gh)*(part.get_alignment().y+1)/2, 0);
- const Graphic *graphic=part.get_graphic(state);
- graphic->render(gw, gh);
- GL::pop_matrix();
- }
- else
- Widget::render_part(part);