mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 18:05:06 +01:00
Add compile-time define for compiling with RGB565 support or not (setting bit depth is a compile-time option - faster than determing bpp per runtime)
This commit is contained in:
parent
2cbcfe8f72
commit
02d871c862
@ -1,6 +1,7 @@
|
||||
NTSC = 0
|
||||
DEBUG = 0
|
||||
LOGSOUND = 0
|
||||
FRONTEND_SUPPORTS_RGB565 = 1
|
||||
|
||||
GENPLUS_SRC_DIR := source
|
||||
LIBRETRO_DIR := libretro
|
||||
@ -154,6 +155,13 @@ endif
|
||||
DEFINES :=
|
||||
CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
|
||||
|
||||
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
||||
# if you have a new frontend that supports RGB565
|
||||
BPP_DEFINES = -DUSE_16BPP_RENDERING
|
||||
else
|
||||
BPP_DEFINES = -DUSE_15BPP_RENDERING
|
||||
endif
|
||||
|
||||
LIBRETRO_CFLAGS += -I$(GENPLUS_SRC_DIR) \
|
||||
-I$(GENPLUS_SRC_DIR)/sound \
|
||||
-I$(GENPLUS_SRC_DIR)/input_hw \
|
||||
@ -164,7 +172,7 @@ LIBRETRO_CFLAGS += -I$(GENPLUS_SRC_DIR) \
|
||||
-I$(GENPLUS_SRC_DIR)/z80 \
|
||||
-I$(GENPLUS_SRC_DIR)/ntsc \
|
||||
-I$(LIBRETRO_DIR) \
|
||||
-DUSE_16BPP_RENDERING \
|
||||
$(BPP_DEFINES) \
|
||||
$(ENDIANNESS_DEFINES) \
|
||||
$(PLATFORM_DEFINES) \
|
||||
-DINLINE="static inline" \
|
||||
|
Loading…
Reference in New Issue
Block a user