fix handle drawing to properly be a square now
This commit is contained in:
parent
75cc8da7ee
commit
901b509991
1 changed files with 4 additions and 5 deletions
9
ui.c
9
ui.c
|
@ -72,11 +72,10 @@ void ui_slider_draw(ui_slider* s) {
|
||||||
glVertex3f(pos.x, pos.y + ext.y, pos.z);
|
glVertex3f(pos.x, pos.y + ext.y, pos.z);
|
||||||
// Draw slider button thing
|
// Draw slider button thing
|
||||||
glColor3f(1.0, 1.0, 1.0);
|
glColor3f(1.0, 1.0, 1.0);
|
||||||
glVertex3f(slider.x - ext.z, slider.y - ext.y, 0.0);
|
glVertex3f(slider.x - ext.z, slider.y - ext.z, 0.0);
|
||||||
glVertex3f(slider.x + ext.z, slider.y - ext.y, 0.0);
|
glVertex3f(slider.x + ext.z, slider.y - ext.z, 0.0);
|
||||||
glVertex3f(slider.x + ext.z, slider.y + ext.y, 0.0);
|
glVertex3f(slider.x + ext.z, slider.y + ext.z, 0.0);
|
||||||
glVertex3f(slider.x - ext.z, slider.y + ext.y, 0.0);
|
glVertex3f(slider.x - ext.z, slider.y + ext.z, 0.0);
|
||||||
|
|
||||||
glEnd();
|
glEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue