Libretro: Add warnings about pixel formats

This commit is contained in:
Jeffrey Pfau 2015-03-08 22:26:24 -07:00
parent de7bd2fb55
commit 6c5a1315ea
1 changed files with 2 additions and 0 deletions

View File

@ -77,9 +77,11 @@ void retro_init(void) {
#ifdef COLOR_5_6_5
fmt = RETRO_PIXEL_FORMAT_RGB565;
#else
#warning This pixel format is unsupported. Please use -DCOLOR_16-BIT -DCOLOR_5_6_5
fmt = RETRO_PIXEL_FORMAT_0RGB1555;
#endif
#else
#warning This pixel format is unsupported. Please use -DCOLOR_16-BIT -DCOLOR_5_6_5
fmt = RETRO_PIXEL_FORMAT_XRGB8888;
#endif
environCallback(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt);