mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
(GL) Cleanups
This commit is contained in:
parent
1f1525a7e8
commit
36d5cc890b
@ -899,18 +899,16 @@ static void gl_set_viewport(void *data, unsigned viewport_width,
|
|||||||
viewport_height = (unsigned)roundf(2.0f * viewport_height * delta);
|
viewport_height = (unsigned)roundf(2.0f * viewport_height * delta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gl->vp.x = x;
|
|
||||||
gl->vp.y = y;
|
|
||||||
gl->vp.width = viewport_width;
|
|
||||||
gl->vp.height = viewport_height;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gl->vp.x = gl->vp.y = 0;
|
x = 0;
|
||||||
gl->vp.width = viewport_width;
|
y = 0;
|
||||||
gl->vp.height = viewport_height;
|
|
||||||
}
|
}
|
||||||
|
gl->vp.x = x;
|
||||||
|
gl->vp.y = y;
|
||||||
|
gl->vp.width = viewport_width;
|
||||||
|
gl->vp.height = viewport_height;
|
||||||
|
|
||||||
#if defined(RARCH_MOBILE)
|
#if defined(RARCH_MOBILE)
|
||||||
/* In portrait mode, we want viewport to gravitate to top of screen. */
|
/* In portrait mode, we want viewport to gravitate to top of screen. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user