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 }