mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Kill some signed integer overflow warnings
This commit is contained in:
parent
12cfb3bfce
commit
d1b7cdef57
@ -113,12 +113,12 @@ typedef struct video_info
|
|||||||
bool rgb32;
|
bool rgb32;
|
||||||
} video_info_t;
|
} video_info_t;
|
||||||
|
|
||||||
#define FONT_COLOR_RGBA(r, g, b, a) (((r) << 24) | ((g) << 16) | ((b) << 8) | ((a) << 0))
|
#define FONT_COLOR_RGBA(r, g, b, a) (((unsigned)(r) << 24) | ((g) << 16) | ((b) << 8) | ((a) << 0))
|
||||||
#define FONT_COLOR_GET_RED(col) (((col) >> 24) & 0xff)
|
#define FONT_COLOR_GET_RED(col) (((col) >> 24) & 0xff)
|
||||||
#define FONT_COLOR_GET_GREEN(col) (((col) >> 16) & 0xff)
|
#define FONT_COLOR_GET_GREEN(col) (((col) >> 16) & 0xff)
|
||||||
#define FONT_COLOR_GET_BLUE(col) (((col) >> 8) & 0xff)
|
#define FONT_COLOR_GET_BLUE(col) (((col) >> 8) & 0xff)
|
||||||
#define FONT_COLOR_GET_ALPHA(col) (((col) >> 0) & 0xff)
|
#define FONT_COLOR_GET_ALPHA(col) (((col) >> 0) & 0xff)
|
||||||
#define FONT_COLOR_ARGB_TO_RGBA(col) ( (((col) >> 24) & 0xff) | (((col) << 8) & 0xffffff00) )
|
#define FONT_COLOR_ARGB_TO_RGBA(col) ( (((col) >> 24) & 0xff) | (((unsigned)(col) << 8) & 0xffffff00) )
|
||||||
|
|
||||||
/* Optionally implemented interface to poke more
|
/* Optionally implemented interface to poke more
|
||||||
* deeply into video driver. */
|
* deeply into video driver. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user