widget[id].scale,
widget[id].scale);
- if (widget[id].value)
+ if (widget[id].value > 0)
{
/* Translate left by half the total width of the rendered value. */
glTranslatef((GLfloat) -digit_w[i][j % 10], 0.0f, 0.0f);
}
}
- else
+ else if (widget[id].value == 0)
{
/* If the value is zero, just display a zero in place. */
GLfloat dx_large = (GLfloat) digit_w[i][0];
GLfloat dx_small = (GLfloat) digit_w[i][0] * 0.75f;
+ if (widget[id].value < 0)
+ return;
+
glPushMatrix();
{
glColor4fv(gui_wht);
return active = jd;
}
+void gui_focus(int i)
+{
+ active = i;
+}
+
int gui_click(void)
{
return active;