if (TTF_Init() == 0)
{
int s0 = s / 26;
- int s1 = s / 12;
- int s2 = s / 6;
+ int s1 = s / 13;
+ int s2 = s / 7;
int m;
/* Make sure text size doesn't exceed the maximum texture size. */
/* Hilite the widget under the cursor, if any. */
- gui_point(id, -1, -1);
+ /* gui_point(id, -1, -1); */
}
int gui_search(int id, int x, int y)
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();
{