mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
move device_aspect variable
This commit is contained in:
parent
50a6c53432
commit
23ed63f33a
@ -121,12 +121,11 @@ static void ctr_update_viewport(ctr_video_t* ctr)
|
|||||||
{
|
{
|
||||||
int x = 0;
|
int x = 0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
float device_aspect = ((float)ctr->vp.full_width) / ctr->vp.full_height;
|
|
||||||
float width = ctr->vp.full_width;
|
float width = ctr->vp.full_width;
|
||||||
float height = ctr->vp.full_height;
|
float height = ctr->vp.full_height;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
float desired_aspect = video_driver_get_aspect_ratio();
|
float desired_aspect = video_driver_get_aspect_ratio();
|
||||||
|
|
||||||
if(ctr->rotation & 0x1)
|
if(ctr->rotation & 0x1)
|
||||||
desired_aspect = 1.0 / desired_aspect;
|
desired_aspect = 1.0 / desired_aspect;
|
||||||
|
|
||||||
@ -154,6 +153,7 @@ static void ctr_update_viewport(ctr_video_t* ctr)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
float delta;
|
float delta;
|
||||||
|
float device_aspect = ((float)ctr->vp.full_width) / ctr->vp.full_height;
|
||||||
|
|
||||||
if (fabsf(device_aspect - desired_aspect) < 0.0001f)
|
if (fabsf(device_aspect - desired_aspect) < 0.0001f)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user