summaryrefslogtreecommitdiff
path: root/platform/gl
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-21 12:43:44 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-05 14:47:37 +0100
commitcc4bd1b4f82a67f70c7ccad4da874d6e7451eeae (patch)
treed89fbf1a210cad46f44620ed064c0ee353145d35 /platform/gl
parent2e7ca8a6b69c935d5b2beb3a0a618c54bbbac33b (diff)
downloadmupdf-cc4bd1b4f82a67f70c7ccad4da874d6e7451eeae.tar.xz
gl: Draw outline around text fields.
Diffstat (limited to 'platform/gl')
-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;