summaryrefslogtreecommitdiff
path: root/meme/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-13 04:57:45 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-13 04:57:45 (GMT)
commit26600675a81a9617ff70508ae86dbf7ab1652bd0 (patch)
tree74383c4a499cce7418592fe6abf7bbca8ce84568 /meme/gui.c
parentcd04bf72f39f290297305021a4788f830f897747 (diff)
downloadmisc-26600675a81a9617ff70508ae86dbf7ab1652bd0.zip
misc-26600675a81a9617ff70508ae86dbf7ab1652bd0.tar.gz
misc-26600675a81a9617ff70508ae86dbf7ab1652bd0.tar.bz2
meme/gui.c (show_cursor): add cursor cross
Diffstat (limited to 'meme/gui.c')
-rw-r--r--meme/gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/meme/gui.c b/meme/gui.c
index 715bac9..d573f47 100644
--- a/meme/gui.c
+++ b/meme/gui.c
@@ -320,7 +320,11 @@ static void show_cursor(SDL_Surface *s, const struct vertex *v)
int y = y_model2screen(v->y);
change(s, x-CURSOR_R, y-CURSOR_R, 2*CURSOR_R+1, 2*CURSOR_R+1);
+ change(s, 0, y, XRES-1, 1);
+ change(s, x, 0, 1, YRES-1);
SDL_LockSurface(s);
+ aalineColor(s, 0, y, XRES-1, y, CURSOR_RGBA);
+ aalineColor(s, x, 0, x, YRES-1, CURSOR_RGBA);
filledCircleColor(s, x, y, CURSOR_R, CURSOR_RGBA);
SDL_UnlockSurface(s);
}