Commit e65081d5 authored by Francisco Javier Trujillo Mata's avatar Francisco Javier Trujillo Mata
Browse files

Add PS2 compilation and color correction

parent fa61739e
......@@ -169,6 +169,16 @@ else ifeq ($(platform), classic_armv7_a7)
endif
#######################################
# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = ee-gcc$(EXE_EXT)
CC_AS = ee-gcc$(EXE_EXT)
AR = ee-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPS2
CFLAGS += -G0
STATIC_LINKING = 1
# PSP 1
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
......
......@@ -28,6 +28,8 @@ extern int RAMPages ;
#define HEIGHT 228
#ifdef PSP
#define PIXEL(R,G,B) (pixel)(((31*(B)/255)<<11)|((63*(G)/255)<<5)|(31*(R)/255))
#elif defined(PS2)
#define PIXEL(R,G,B) (pixel)(((31*(B)/255)<<10)|((31*(G)/255)<<5)|(31*(R)/255))
#else
#define PIXEL(R,G,B) (pixel)(((31*(R)/255)<<11)|((63*(G)/255)<<5)|(31*(B)/255))
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment