summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/gl/gl-input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/gl/gl-input.c b/platform/gl/gl-input.c
index 442c277a..67aaf317 100644
--- a/platform/gl/gl-input.c
+++ b/platform/gl/gl-input.c
@@ -310,9 +310,12 @@ int ui_input(int x0, int y0, int x1, int y1, struct input *input)
else
state = 0;
- glColor4f(1, 1, 1, 1);
+ glColor4f(0, 0, 0, 1);
glRectf(x0, y0, x1, y1);
+ glColor4f(1, 1, 1, 1);
+ glRectf(x0+1, y0+1, x1-1, y1-1);
+
p = input->p < input->q ? input->p : input->q;
q = input->p > input->q ? input->p : input->q;