(CTR) Remove ctr_set_scale_vector until we actually have a need for it

This commit is contained in:
libretroadmin 2023-01-24 23:04:07 +01:00
parent fdc47dcdae
commit e30793b06f
2 changed files with 7 additions and 17 deletions

View File

@ -185,21 +185,4 @@ struct ctr_overlay_data
};
#endif
struct ctr_bottom_texture_data
{
uintptr_t texture;
ctr_vertex_t* frame_coords;
ctr_scale_vector_t scale_vector;
};
static INLINE void ctr_set_scale_vector(ctr_scale_vector_t* vec,
int viewport_width, int viewport_height,
int texture_width, int texture_height)
{
vec->x = -2.0f / viewport_width;
vec->y = -2.0f / viewport_height;
vec->u = 1.0f / texture_width;
vec->v = -1.0f / texture_height;
}
#endif /* CTR_COMMON_H__ */

View File

@ -59,6 +59,13 @@ enum
CTR_TEXTURE_LAST
};
struct ctr_bottom_texture_data
{
uintptr_t texture;
ctr_vertex_t* frame_coords;
ctr_scale_vector_t scale_vector;
};
/* TODO/FIXME - global referenced outside */
extern uint64_t lifecycle_state;