Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
make TTF_FONT_PATH configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Esser committed Mar 29, 2016
1 parent 12aeff6 commit 1e1338f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CC ?= clang
CFLAGS += -Wno-visibility -Wno-incompatible-pointer-types -Wall -Wextra -O2 -DINVERT_COLORS -DVT100 -O2
LFLAGS +=
CC ?= clang
TTF_FONT_PATH ?= res/Anonymous Pro.ttf
CFLAGS += -DTTF_FONT_PATH="\"$(TTF_FONT_PATH)\""
CFLAGS += -Wno-visibility -Wno-incompatible-pointer-types -Wall -Wextra
CFLAGS += -DINVERT_COLORS -DVT100 -O2
LFLAGS +=

PROGRAM := 2048
C_FILES := $(wildcard src/*.c)
Expand Down
1 change: 0 additions & 1 deletion src/gfx_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "gfx.h"

/* Side length of a 'pixel' in pixels */
#define TTF_FONT_PATH "res/Anonymous Pro.ttf"
#define TTF_FONT_PT 32

#define iterate(n, expression)\
Expand Down

0 comments on commit 1e1338f

Please sign in to comment.