diff options
author | aliaspider | 2015-11-13 21:41:22 +0100 |
---|---|---|
committer | aliaspider | 2015-11-13 21:41:22 +0100 |
commit | e7e3bce1282f17c33170d513c7bda470bfddb9d5 (patch) | |
tree | 1771342ed34c335b24182e4e2b30679b07527fdc | |
parent | 34d3b44696ffbd9c532bd3edff77a8cd0b60b6e8 (diff) | |
download | snes9x2002-e7e3bce1282f17c33170d513c7bda470bfddb9d5.tar.gz snes9x2002-e7e3bce1282f17c33170d513c7bda470bfddb9d5.tar.bz2 snes9x2002-e7e3bce1282f17c33170d513c7bda470bfddb9d5.zip |
more gfx fixes for non ARM platforms.
-rw-r--r-- | Makefile.common | 20 | ||||
-rw-r--r-- | src/ppu.h | 15 |
2 files changed, 9 insertions, 26 deletions
diff --git a/Makefile.common b/Makefile.common index e77748a..6e82b94 100644 --- a/Makefile.common +++ b/Makefile.common @@ -31,16 +31,14 @@ SOURCES += $(CORE_DIR)/snapshot.c SOURCES += $(CORE_DIR)/soundux.c SOURCES += $(CORE_DIR)/spc700.c SOURCES += $(CORE_DIR)/srtc.c -SOURCES += $(CORE_DIR)/rops.c SOURCES += $(LIBRETRO_DIR)/libretro.c SOURCES += $(LIBRETRO_DIR)/memstream.c ifeq ($(ARM_ASM), 1) SOURCES += $(CORE_DIR)/spc700a.s SOURCES += $(CORE_DIR)/spc_decode.S - SOURCES += $(CORE_DIR)/ppu.c - +SOURCES += $(CORE_DIR)/rops.c SOURCES += $(CORE_DIR)/mode7new.c SOURCES += $(CORE_DIR)/mode7.c SOURCES += $(CORE_DIR)/mode7add.c @@ -53,7 +51,6 @@ SOURCES += $(CORE_DIR)/mode7add1_2prio.c SOURCES += $(CORE_DIR)/mode7subprio.c SOURCES += $(CORE_DIR)/mode7sub1_2prio.c SOURCES += $(CORE_DIR)/gfx16.c - SOURCES += $(CORE_DIR)/tile16.c SOURCES += $(CORE_DIR)/tile16add.c SOURCES += $(CORE_DIR)/tile16add1_2.c @@ -61,19 +58,21 @@ SOURCES += $(CORE_DIR)/tile16fadd1_2.c SOURCES += $(CORE_DIR)/tile16sub.c SOURCES += $(CORE_DIR)/tile16sub1_2.c SOURCES += $(CORE_DIR)/tile16fsub1_2.c - SOURCES += $(CORE_DIR)/os9x_65c816_global.s SOURCES += $(CORE_DIR)/os9x_65c816_spcasm.s SOURCES += $(CORE_DIR)/os9x_65c816_spcc.s - #SOURCES += $(CORE_DIR)/os9x_65c816.s - SOURCES += $(CORE_DIR)/os9x_asm_cpu.c +DEFINES += -mstructure-size-boundary=32 +DEFINES += -DARM_ASM +DEFINES += -DRIGHTSHIFT_IS_SAR else SOURCES += $(CORE_DIR)/ppu_.c SOURCES += $(CORE_DIR)/gfx.c SOURCES += $(CORE_DIR)/tile.c + +DEFINES += -D__OLD_RASTER_FX__ endif @@ -97,13 +96,6 @@ DEFINES += -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ #DEFINES += -DRIGHTSHIFT_IS_SAR DEFINES += -DUSE_SA1 - -ifeq ($(ARM_ASM), 1) -DEFINES += -mstructure-size-boundary=32 -DEFINES += -DARM_ASM -DEFINES += -DRIGHTSHIFT_IS_SAR -endif - ifeq ($(platform), sncps3) WARNINGS_DEFINES = CODE_DEFINES = @@ -505,11 +505,8 @@ STATIC INLINE void REGISTER_2119_linear(uint8 Byte) // Memory.FillRAM [0x2119] = Byte; } -#ifdef __OLD_RASTER_FX__ -STATIC INLINE void REGISTER_2122_delayedRasterFx(uint8 Byte) -#else +#ifndef __OLD_RASTER_FX__ STATIC INLINE void REGISTER_2122(uint8 Byte) -#endif { // CG-RAM (palette) write @@ -548,8 +545,8 @@ STATIC INLINE void REGISTER_2122(uint8 Byte) // Memory.FillRAM [0x2122] = Byte; } -#ifdef __OLD_RASTER_FX__ -STATIC INLINE void REGISTER_2122_normalRasterFx(uint8 Byte) +#else // __OLD_RASTER_FX__ +STATIC INLINE void REGISTER_2122(uint8 Byte) { // CG-RAM (palette) write @@ -601,12 +598,6 @@ STATIC INLINE void REGISTER_2122_normalRasterFx(uint8 Byte) // Memory.FillRAM [0x2122] = Byte; } - -STATIC INLINE void REGISTER_2122(uint8 Byte) -{ - if (snesMenuOptions.delayedRasterFX) REGISTER_2122_delayedRasterFx(Byte); - else REGISTER_2122_normalRasterFx(Byte); -} #endif STATIC INLINE void REGISTER_2180(uint8 Byte) |