From 0c9bce977360b289dc52d135c8de359a3a6b51e6 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 24 May 2009 06:27:46 +0000 Subject: [PATCH] Move the leds up a bit --- Makefile.wii | 3 ++- src/drawing.c | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.wii b/Makefile.wii index d4e351f..73ed609 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -118,7 +118,8 @@ $(BIN_DIR)/%.dol: %.elf COMMON_FLAGS := -g -O3 -G8 -mrvl -Wall -D__inline__=__inline__ $(MACHDEP) INCLUDES := -Isrc/md-generic/ -Isrc/include -Isrc -I$(DEVKITPRO)/libogc/include -I$(DEVKITPRO)/libogc/include/SDL DEFINES := -DOS_WITHOUT_MEMORY_MANAGEMENT -DSAVESTATE -DUSE_SDL -DSUPPORT_THREADS -DCPUEMU_0 -DCPUEMU_5 -DCPUEMU_6 \ - -DFPUEMU -DAGA -DAUTOCONFIG -DFILESYS + -DFPUEMU -DAGA -DAUTOCONFIG -DFILESYS \ + -DTD_START_HEIGHT=32 CFLAGS := $(COMMON_FLAGS) $(INCLUDES) $(DEFINES) #unused defines; -DFDI2RAW diff --git a/src/drawing.c b/src/drawing.c index 36ce728..da701d2 100644 --- a/src/drawing.c +++ b/src/drawing.c @@ -1640,7 +1640,11 @@ static int td_pos = (TD_RIGHT|TD_BOTTOM); #define TD_NUM_WIDTH 7 #define TD_NUM_HEIGHT 7 -#define TD_TOTAL_HEIGHT (TD_PADY * 2 + TD_NUM_HEIGHT) +#ifndef TD_START_HEIGHT +# define TD_START_HEIGHT 0 +#endif + +#define TD_TOTAL_HEIGHT (TD_PADY + TD_NUM_HEIGHT + TD_START_HEIGHT) #define NUMBERS_NUM 14