mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-04 18:05:06 +01: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)
|
||||
# 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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user