(libretro) Libretro maintenance update

This commit is contained in:
twinaphex 2012-10-22 21:55:48 +02:00
parent 79f469ad32
commit 7ddd1a1b54
2 changed files with 6 additions and 4 deletions

View File

@ -977,9 +977,7 @@ void retro_init(void)
#ifdef FRONTEND_SUPPORTS_RGB565
unsigned rgb565 = RETRO_PIXEL_FORMAT_RGB565;
environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565);
if (rgb565)
if(environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &rgb565))
fprintf(stderr, "Frontend supports RGB565 - will use that instead of XRGB1555.\n");
#endif
}

View File

@ -3,6 +3,7 @@
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
// Hack applied for MSVC when compiling in C89 mode as it isn't C99 compliant.
#ifdef __cplusplus
@ -380,7 +381,10 @@ enum retro_pixel_format
// RGB565, native endian. This pixel format is the recommended format to use if a 15/16-bit format is desired
// as it is the pixel format that is typically available on a wide range of low-power devices.
// It is also natively supported in APIs like OpenGL ES.
RETRO_PIXEL_FORMAT_RGB565 = 2
RETRO_PIXEL_FORMAT_RGB565 = 2,
// Ensure sizeof() == sizeof(int).
RETRO_PIXEL_FORMAT_UNKNOWN = INT_MAX
};
struct retro_message