mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
d3d: Fix download of small sections, oops.
This commit is contained in:
parent
e4d5eb5d6c
commit
98549aeb51
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ namespace DX9 {
|
|||
D3DLOCKED_RECT locked;
|
||||
u32 widthFactor = vfb->renderWidth / vfb->bufferWidth;
|
||||
u32 heightFactor = vfb->renderHeight / vfb->bufferHeight;
|
||||
RECT rect = {x * widthFactor, y * heightFactor, w * widthFactor, h * heightFactor};
|
||||
RECT rect = {x * widthFactor, y * heightFactor, (x + w) * widthFactor, (y + h) * heightFactor};
|
||||
hr = offscreen->LockRect(&locked, &rect, D3DLOCK_READONLY);
|
||||
if (SUCCEEDED(hr)) {
|
||||
// TODO: Handle the other formats? We don't currently create them, I think.
|
||||
|
|
Loading…
Add table
Reference in a new issue