mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Fixed the same cropping issue but on the vertical axis
This commit is contained in:
parent
4203c359a4
commit
73ba25cea1
@ -3690,6 +3690,7 @@ static bool d3d11_gfx_read_viewport(void* data, uint8_t* buffer, bool is_idle)
|
|||||||
/* Assuming format is DXGI_FORMAT_R8G8B8A8_UNORM */
|
/* Assuming format is DXGI_FORMAT_R8G8B8A8_UNORM */
|
||||||
if (StagingDesc.Format == DXGI_FORMAT_R8G8B8A8_UNORM)
|
if (StagingDesc.Format == DXGI_FORMAT_R8G8B8A8_UNORM)
|
||||||
{
|
{
|
||||||
|
BackBufferData += Map.RowPitch * d3d11->vp.y;
|
||||||
for (y = 0; y < d3d11->vp.height; y++, BackBufferData += Map.RowPitch)
|
for (y = 0; y < d3d11->vp.height; y++, BackBufferData += Map.RowPitch)
|
||||||
{
|
{
|
||||||
bufferRow = buffer + 3 * (d3d11->vp.height - y - 1) * d3d11->vp.width;
|
bufferRow = buffer + 3 * (d3d11->vp.height - y - 1) * d3d11->vp.width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user