mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-10 16:53:15 +02:00
Since setting color format is a compile time option - ifdef it
altogether for older frontends
This commit is contained in:
parent
02d871c862
commit
e20e40ebc2
@ -157,7 +157,7 @@ CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
|
|||||||
|
|
||||||
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
||||||
# if you have a new frontend that supports RGB565
|
# if you have a new frontend that supports RGB565
|
||||||
BPP_DEFINES = -DUSE_16BPP_RENDERING
|
BPP_DEFINES = -DUSE_16BPP_RENDERING -DFRONTEND_SUPPORTS_RGB565
|
||||||
else
|
else
|
||||||
BPP_DEFINES = -DUSE_15BPP_RENDERING
|
BPP_DEFINES = -DUSE_15BPP_RENDERING
|
||||||
endif
|
endif
|
||||||
|
@ -975,11 +975,13 @@ void retro_init(void)
|
|||||||
level = 1;
|
level = 1;
|
||||||
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
|
environ_cb(RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL, &level);
|
||||||
|
|
||||||
|
#ifdef FRONTEND_SUPPORTS_RGB565
|
||||||
unsigned rgb565 = RETRO_PIXEL_FORMAT_RGB565;
|
unsigned rgb565 = RETRO_PIXEL_FORMAT_RGB565;
|
||||||
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565);
|
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565);
|
||||||
|
|
||||||
if (rgb565)
|
if (rgb565)
|
||||||
fprintf(stderr, "Frontend supports RGB565 - will use that instead of XRGB1555.");
|
fprintf(stderr, "Frontend supports RGB565 - will use that instead of XRGB1555.");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void retro_deinit(void)
|
void retro_deinit(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user