From 9c3caf282f9158f7bae42642fe0084f36078792f Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 1 Feb 2013 11:48:46 -0300 Subject: [PATCH] ubb-la/gui.c (gui_init): disable the cursor on the Ben --- ubb-la/Makefile | 1 + ubb-la/gui.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ubb-la/Makefile b/ubb-la/Makefile index 0156a42..5583c06 100644 --- a/ubb-la/Makefile +++ b/ubb-la/Makefile @@ -12,6 +12,7 @@ CC = mipsel-openwrt-linux-gcc CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include \ + $(if $(LIBUBB),-DBEN,) \ $(shell sdl-config --cflags) LDFLAGS = #LDLIBS = -L../libubb -lubb -lm -lrt $(shell sdl-config --libs) -lSDL_gfx diff --git a/ubb-la/gui.c b/ubb-la/gui.c index 4945a00..1c7847b 100644 --- a/ubb-la/gui.c +++ b/ubb-la/gui.c @@ -130,6 +130,10 @@ void gui_init(void) } SDL_EnableKeyRepeat(REPEAT_DELAY_MS, REPEAT_INTERVAL_MS); + +#ifdef BEN + SDL_ShowCursor(SDL_DISABLE); +#endif }