mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(XMB) Code cleaning
This commit is contained in:
parent
66bfdc9408
commit
710e912aca
@ -175,8 +175,6 @@ typedef struct xmb_handle
|
||||
uintptr_t savestate_thumbnail;
|
||||
float thumbnail_width;
|
||||
float thumbnail_height;
|
||||
float thumbnail_orig_width;
|
||||
float thumbnail_orig_height;
|
||||
float savestate_thumbnail_width;
|
||||
float savestate_thumbnail_height;
|
||||
char background_file_path[PATH_MAX_LENGTH];
|
||||
@ -3409,8 +3407,6 @@ static bool xmb_load_image(void *userdata, void *data, enum menu_image_type type
|
||||
case MENU_IMAGE_THUMBNAIL:
|
||||
{
|
||||
struct texture_image *img = (struct texture_image*)data;
|
||||
xmb->thumbnail_orig_width = (float)img->width;
|
||||
xmb->thumbnail_orig_height = (float)img->height;
|
||||
xmb->thumbnail_height = xmb->thumbnail_width
|
||||
* (float)img->height / (float)img->width;
|
||||
video_driver_texture_unload(&xmb->thumbnail);
|
||||
@ -3421,8 +3417,6 @@ static bool xmb_load_image(void *userdata, void *data, enum menu_image_type type
|
||||
case MENU_IMAGE_SAVESTATE_THUMBNAIL:
|
||||
{
|
||||
struct texture_image *img = (struct texture_image*)data;
|
||||
xmb->thumbnail_orig_width = (float)img->width;
|
||||
xmb->thumbnail_orig_height = (float)img->height;
|
||||
xmb->savestate_thumbnail_height = xmb->savestate_thumbnail_width
|
||||
* (float)img->height / (float)img->width;
|
||||
video_driver_texture_unload(&xmb->savestate_thumbnail);
|
||||
|
Loading…
x
Reference in New Issue
Block a user