mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Ifdef this for HAVE_D3D12
This commit is contained in:
parent
472abb1e8f
commit
e79c19e52a
@ -1859,11 +1859,17 @@ void video_driver_update_viewport(struct video_viewport* vp, bool force_full, bo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO/FIXME - messy - maybe we should add a new function to the
|
||||||
|
* video driver interface instead to hide away implementation details */
|
||||||
#if defined(RARCH_MOBILE)
|
#if defined(RARCH_MOBILE)
|
||||||
|
#ifdef HAVE_D3D
|
||||||
|
#ifdef HAVE_D3D12
|
||||||
/* In portrait mode, we want viewport to gravitate to top of screen. */
|
/* In portrait mode, we want viewport to gravitate to top of screen. */
|
||||||
if (device_aspect < 1.0f)
|
if (device_aspect < 1.0f)
|
||||||
d3d12->vp.y = 0;
|
d3d12->vp.y = 0;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void video_driver_show_mouse(void)
|
void video_driver_show_mouse(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user