Since setting color format is a compile time option - ifdef it

altogether for older frontends
This commit is contained in:
twinaphex 2012-10-22 07:09:35 +02:00
parent 02d871c862
commit e20e40ebc2
2 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,7 @@ CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
# if you have a new frontend that supports RGB565
BPP_DEFINES = -DUSE_16BPP_RENDERING
BPP_DEFINES = -DUSE_16BPP_RENDERING -DFRONTEND_SUPPORTS_RGB565
else
BPP_DEFINES = -DUSE_15BPP_RENDERING
endif

View File

@ -975,11 +975,13 @@ void retro_init(void)
level = 1;
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
#ifdef FRONTEND_SUPPORTS_RGB565
unsigned rgb565 = RETRO_PIXEL_FORMAT_RGB565;
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565);
if (rgb565)
fprintf(stderr, "Frontend supports RGB565 - will use that instead of XRGB1555.");
#endif
}
void retro_deinit(void)