mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(RARCH_CONSOLE) Build fix
This commit is contained in:
parent
9cce8fa07b
commit
88d9aae9a2
@ -438,7 +438,7 @@ static void rmenu_init_assets(void *data)
|
|||||||
|
|
||||||
menu_texture = (struct texture_image*)calloc(1, sizeof(*menu_texture));
|
menu_texture = (struct texture_image*)calloc(1, sizeof(*menu_texture));
|
||||||
|
|
||||||
if (driver.image && driver.menu->load)
|
if (driver.image && driver.image->load)
|
||||||
driver.image->load(driver.video_data, g_extern.menu_texture_path, menu_texture);
|
driver.image->load(driver.video_data, g_extern.menu_texture_path, menu_texture);
|
||||||
rgui->width = menu_texture->width;
|
rgui->width = menu_texture->width;
|
||||||
rgui->height = menu_texture->height;
|
rgui->height = menu_texture->height;
|
||||||
|
@ -111,9 +111,6 @@ static bool rpng_image_load_tga_shift(const char *path, struct texture_image *ou
|
|||||||
static bool rpng_image_load_argb_shift(const char *path, struct texture_image *out_img,
|
static bool rpng_image_load_argb_shift(const char *path, struct texture_image *out_img,
|
||||||
unsigned a_shift, unsigned r_shift, unsigned g_shift, unsigned b_shift)
|
unsigned a_shift, unsigned r_shift, unsigned g_shift, unsigned b_shift)
|
||||||
{
|
{
|
||||||
unsigned i;
|
|
||||||
(void)i;
|
|
||||||
|
|
||||||
if (strstr(path, ".tga"))
|
if (strstr(path, ".tga"))
|
||||||
return rpng_image_load_tga_shift(path, out_img, a_shift, r_shift, g_shift, b_shift);
|
return rpng_image_load_tga_shift(path, out_img, a_shift, r_shift, g_shift, b_shift);
|
||||||
#ifdef HAVE_ZLIB
|
#ifdef HAVE_ZLIB
|
||||||
@ -129,8 +126,9 @@ static bool rpng_image_load_argb_shift(const char *path, struct texture_image *o
|
|||||||
// This is quite uncommon ...
|
// This is quite uncommon ...
|
||||||
if (a_shift != 24 || r_shift != 16 || g_shift != 8 || b_shift != 0)
|
if (a_shift != 24 || r_shift != 16 || g_shift != 8 || b_shift != 0)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
unsigned num_pixels = out_img->width * out_img->height;
|
unsigned num_pixels = out_img->width * out_img->height;
|
||||||
uint32_t *pixels = out_img->pixels;
|
uint32_t *pixels = (uint32_t*)out_img->pixels;
|
||||||
|
|
||||||
for (i = 0; i < num_pixels; i++)
|
for (i = 0; i < num_pixels; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user