From cc4bd1b4f82a67f70c7ccad4da874d6e7451eeae Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Dec 2015 12:43:44 +0100 Subject: gl: Draw outline around text fields. --- platform/gl/gl-input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'platform/gl') 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; -- cgit v1.2.3