mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Fix maintaining aspect ratio
This commit is contained in:
parent
36a48cd7f9
commit
e01095a51b
@ -705,6 +705,7 @@ d3d10_gfx_init(const video_info_t* video,
|
||||
d3d10->viewport.Width = d3d10->vp.full_width;
|
||||
d3d10->viewport.Height = d3d10->vp.full_height;
|
||||
d3d10->resize_viewport = true;
|
||||
d3d10->keep_aspect = video->force_aspect;
|
||||
d3d10->vsync = video->vsync;
|
||||
d3d10->format = video->rgb32 ?
|
||||
DXGI_FORMAT_B8G8R8X8_UNORM : DXGI_FORMAT_B5G6R5_UNORM;
|
||||
|
@ -782,6 +782,7 @@ d3d11_gfx_init(const video_info_t* video, const input_driver_t** input, void** i
|
||||
d3d11->viewport.Width = d3d11->vp.full_width;
|
||||
d3d11->viewport.Height = d3d11->vp.full_height;
|
||||
d3d11->resize_viewport = true;
|
||||
d3d11->keep_aspect = video->force_aspect;
|
||||
d3d11->vsync = video->vsync;
|
||||
d3d11->format = video->rgb32 ?
|
||||
DXGI_FORMAT_B8G8R8X8_UNORM : DXGI_FORMAT_B5G6R5_UNORM;
|
||||
|
Loading…
Reference in New Issue
Block a user