mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Add integer scale to PC D3D9.
This commit is contained in:
parent
091403cb5d
commit
0dcf6791a4
@ -312,7 +312,13 @@ end:
|
|||||||
void D3DVideo::calculate_rect(unsigned width, unsigned height,
|
void D3DVideo::calculate_rect(unsigned width, unsigned height,
|
||||||
bool keep, float desired_aspect)
|
bool keep, float desired_aspect)
|
||||||
{
|
{
|
||||||
if (!keep)
|
if (g_settings.video.scale_integer)
|
||||||
|
{
|
||||||
|
struct rarch_viewport vp = {0};
|
||||||
|
gfx_scale_integer(&vp, width, height, desired_aspect, keep);
|
||||||
|
set_viewport(vp.x, vp.y, vp.width, vp.height);
|
||||||
|
}
|
||||||
|
else if (!keep)
|
||||||
set_viewport(0, 0, width, height);
|
set_viewport(0, 0, width, height);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user