mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Reorder structs/alignment
This commit is contained in:
parent
bfc8a7beca
commit
8a530aa5dd
@ -66,12 +66,12 @@ enum gfx_thumbnail_shadow_type
|
|||||||
* an entry thumbnail */
|
* an entry thumbnail */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
enum gfx_thumbnail_status status;
|
|
||||||
uintptr_t texture;
|
uintptr_t texture;
|
||||||
unsigned width;
|
unsigned width;
|
||||||
unsigned height;
|
unsigned height;
|
||||||
float alpha;
|
float alpha;
|
||||||
float delay_timer;
|
float delay_timer;
|
||||||
|
enum gfx_thumbnail_status status;
|
||||||
bool fade_active;
|
bool fade_active;
|
||||||
} gfx_thumbnail_t;
|
} gfx_thumbnail_t;
|
||||||
|
|
||||||
@ -79,23 +79,35 @@ typedef struct
|
|||||||
* with a thumbnail shadow effect */
|
* with a thumbnail shadow effect */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
enum gfx_thumbnail_shadow_type type;
|
struct
|
||||||
|
{
|
||||||
|
unsigned width;
|
||||||
|
} outline;
|
||||||
float alpha;
|
float alpha;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
float x_offset;
|
float x_offset;
|
||||||
float y_offset;
|
float y_offset;
|
||||||
} drop;
|
} drop;
|
||||||
struct
|
enum gfx_thumbnail_shadow_type type;
|
||||||
{
|
|
||||||
unsigned width;
|
|
||||||
} outline;
|
|
||||||
} gfx_thumbnail_shadow_t;
|
} gfx_thumbnail_shadow_t;
|
||||||
|
|
||||||
/* Structure containing all gfx_thumbnail
|
/* Structure containing all gfx_thumbnail
|
||||||
* global variables */
|
* global variables */
|
||||||
struct gfx_thumbnail_state
|
struct gfx_thumbnail_state
|
||||||
{
|
{
|
||||||
|
/* Due to the asynchronous nature of thumbnail
|
||||||
|
* loading, it is quite possible to trigger a load
|
||||||
|
* then navigate to a different menu list before
|
||||||
|
* the load is complete/handled. As an additional
|
||||||
|
* safety check, we therefore tag the current menu
|
||||||
|
* list with counter value that is incremented whenever
|
||||||
|
* a list is cleared/set. This is sent as userdata when
|
||||||
|
* requesting a thumbnail, and the upload is only
|
||||||
|
* handled if the tag matches the most recent value
|
||||||
|
* at the time when the load completes */
|
||||||
|
uint64_t list_id;
|
||||||
|
|
||||||
/* When streaming thumbnails, to minimise the processing
|
/* When streaming thumbnails, to minimise the processing
|
||||||
* of unnecessary images (i.e. when scrolling rapidly through
|
* of unnecessary images (i.e. when scrolling rapidly through
|
||||||
* playlists), we delay loading until an entry has been on screen
|
* playlists), we delay loading until an entry has been on screen
|
||||||
@ -108,18 +120,6 @@ struct gfx_thumbnail_state
|
|||||||
/* When true, 'fade in' animation will also be
|
/* When true, 'fade in' animation will also be
|
||||||
* triggered for missing thumbnails */
|
* triggered for missing thumbnails */
|
||||||
bool fade_missing;
|
bool fade_missing;
|
||||||
|
|
||||||
/* Due to the asynchronous nature of thumbnail
|
|
||||||
* loading, it is quite possible to trigger a load
|
|
||||||
* then navigate to a different menu list before
|
|
||||||
* the load is complete/handled. As an additional
|
|
||||||
* safety check, we therefore tag the current menu
|
|
||||||
* list with counter value that is incremented whenever
|
|
||||||
* a list is cleared/set. This is sent as userdata when
|
|
||||||
* requesting a thumbnail, and the upload is only
|
|
||||||
* handled if the tag matches the most recent value
|
|
||||||
* at the time when the load completes */
|
|
||||||
uint64_t list_id;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct gfx_thumbnail_state gfx_thumbnail_state_t;
|
typedef struct gfx_thumbnail_state gfx_thumbnail_state_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user