mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(RGUI) Fix trivial build warnings
This commit is contained in:
parent
990c2c405b
commit
ee2f66bbd3
@ -1160,14 +1160,14 @@ static bool INLINE rgui_draw_particle(
|
|||||||
int x_end = x + width;
|
int x_end = x + width;
|
||||||
int y_end = y + height;
|
int y_end = y + height;
|
||||||
|
|
||||||
x_start = x_start <= fb_width ? x_start : fb_width;
|
x_start = x_start <= (int)fb_width ? x_start : fb_width;
|
||||||
y_start = y_start <= fb_height ? y_start : fb_height;
|
y_start = y_start <= (int)fb_height ? y_start : fb_height;
|
||||||
|
|
||||||
x_end = x_end > 0 ? x_end : 0;
|
x_end = x_end > 0 ? x_end : 0;
|
||||||
x_end = x_end <= fb_width ? x_end : fb_width;
|
x_end = x_end <= (int)fb_width ? x_end : fb_width;
|
||||||
|
|
||||||
y_end = y_end > 0 ? y_end : 0;
|
y_end = y_end > 0 ? y_end : 0;
|
||||||
y_end = y_end <= fb_height ? y_end : fb_height;
|
y_end = y_end <= (int)fb_height ? y_end : fb_height;
|
||||||
|
|
||||||
for (y_index = (unsigned)y_start; y_index < (unsigned)y_end; y_index++)
|
for (y_index = (unsigned)y_start; y_index < (unsigned)y_end; y_index++)
|
||||||
{
|
{
|
||||||
@ -2193,7 +2193,6 @@ end:
|
|||||||
|
|
||||||
static void rgui_cache_background(rgui_t *rgui)
|
static void rgui_cache_background(rgui_t *rgui)
|
||||||
{
|
{
|
||||||
size_t pitch_in_pixels, size;
|
|
||||||
size_t fb_pitch;
|
size_t fb_pitch;
|
||||||
unsigned fb_width, fb_height;
|
unsigned fb_width, fb_height;
|
||||||
uint16_t *src = NULL;
|
uint16_t *src = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user