Skip to content

Commit

Permalink
Make N_PANE definable
Browse files Browse the repository at this point in the history
  • Loading branch information
knight-ryu12 authored and d0k3 committed Oct 7, 2018
1 parent e477ec0 commit f58bb6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile.common
Expand Up @@ -61,6 +61,10 @@ ifdef SD_TIMEOUT
CFLAGS += -DSD_TIMEOUT=$(SD_TIMEOUT)
endif

ifdef N_PANES
CFLAGS += -DN_PANES=$(N_PANES)
endif

ifeq ($(MONITOR_HEAP),1)
CFLAGS += -DMONITOR_HEAP
endif
Expand Down
3 changes: 2 additions & 1 deletion arm9/source/godmode.c
Expand Up @@ -20,8 +20,9 @@
#include "vram0.h"
#include "i2c.h"


#ifndef N_PANES
#define N_PANES 3
#endif

#define COLOR_TOP_BAR (PERM_RED ? COLOR_RED : PERM_ORANGE ? COLOR_ORANGE : PERM_BLUE ? COLOR_BRIGHTBLUE : \
PERM_YELLOW ? COLOR_BRIGHTYELLOW : PERM_GREEN ? COLOR_GREEN : COLOR_WHITE)
Expand Down

0 comments on commit f58bb6e

Please sign in to comment.