summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common3
-rw-r--r--video.c5
-rw-r--r--video.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common
index faf0261..3a42edc 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -33,7 +33,10 @@ endif
endif
ifeq ($(CPU_ARCH), arm)
+ifeq ($(CPU_ARCH_ARM_BLENDING_OPTS),1)
+CFLAGS += -DARM_ARCH_BLENDING_OPTS
SOURCES_ASM += $(CORE_DIR)/arm/video_blend.S
endif
+endif
INCFLAGS := -I$(CORE_DIR)
diff --git a/video.c b/video.c
index e8b47b4..cd58760 100644
--- a/video.c
+++ b/video.c
@@ -2296,8 +2296,7 @@ fill_line_builder(color32);
#ifdef RENDER_COLOR16_NORMAL
-#ifndef ARM_ARCH
-
+#ifndef ARM_ARCH_BLENDING_OPTS
void expand_normal(u16 *screen_ptr, u32 start, u32 end)
{
u32 i, pixel_source;
@@ -2328,7 +2327,7 @@ void expand_normal(u16 *screen_ptr, u32 start, u32 end)
void expand_blend(u32 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end);
-#ifndef ARM_ARCH
+#ifndef ARM_ARCH_BLENDING_OPTS
void expand_blend(u32 *screen_src_ptr, u16 *screen_dest_ptr,
u32 start, u32 end)
diff --git a/video.h b/video.h
index 3337f1d..df95fcd 100644
--- a/video.h
+++ b/video.h
@@ -20,7 +20,7 @@
#ifndef VIDEO_H
#define VIDEO_H
-void update_scanline();
+void update_scanline(void);
void video_write_savestate(void);
void video_read_savestate(void);