summaryrefslogtreecommitdiff
path: root/platform/gl/gl-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/gl/gl-main.c')
-rw-r--r--platform/gl/gl-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 9591f4a8..63cbe370 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -358,6 +358,7 @@ static void ui_scrollbar(int x0, int y0, int x1, int y1, int *value, int page_si
if (max <= 0)
{
+ *value = 0;
glColor4f(0.6f, 0.6f, 0.6f, 1.0f);
glRectf(x0, y0, x1, y1);
return;