mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
(Zarch) Cleanups
This commit is contained in:
parent
30fa73dc8d
commit
1645ae54be
@ -131,12 +131,7 @@ typedef struct zarch_handle
|
||||
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
zarch_texture_item id;
|
||||
char path[PATH_MAX_LENGTH];
|
||||
} bg;
|
||||
|
||||
zarch_texture_item bg;
|
||||
zarch_texture_item white;
|
||||
} textures;
|
||||
|
||||
@ -1105,7 +1100,7 @@ static void zarch_frame(void *data)
|
||||
|
||||
draw.width = zui->width;
|
||||
draw.height = zui->height;
|
||||
draw.texture = zui->textures.bg.id;
|
||||
draw.texture = zui->textures.bg;
|
||||
draw.handle_alpha = 0.75f;
|
||||
draw.force_transparency = false;
|
||||
draw.color = &coord_color[0];
|
||||
@ -1197,7 +1192,7 @@ static void zarch_context_bg_destroy(void *data)
|
||||
zui_t *zui = (zui_t*)data;
|
||||
if (!zui)
|
||||
return;
|
||||
video_driver_texture_unload(&zui->textures.bg.id);
|
||||
video_driver_texture_unload(&zui->textures.bg);
|
||||
video_driver_texture_unload(&zui->textures.white);
|
||||
}
|
||||
|
||||
@ -1223,7 +1218,7 @@ static bool zarch_load_image(void *userdata,
|
||||
zarch_context_bg_destroy(zui);
|
||||
video_driver_texture_load(data,
|
||||
TEXTURE_FILTER_MIPMAP_LINEAR,
|
||||
&zui->textures.bg.id);
|
||||
&zui->textures.bg);
|
||||
break;
|
||||
case MENU_IMAGE_BOXART:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user