Module: wine Branch: refs/heads/master Commit: edaac6f69685a537c47038082ef0842f3b7b84ec URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=edaac6f69685a537c4703808...
Author: Paul Vriens Paul.Vriens@xs4all.nl Date: Fri Jun 16 13:02:18 2006 +0200
wined3d: GetScissorRect should use zero-based scissorBox (Coverity).
---
dlls/wined3d/device.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 70b5e23..b45a1e8 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4456,10 +4456,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl ENTER_GL(); /** FIXME: Windows uses a top,left origin openGL uses a bottom Right? **/ glGetIntegerv(GL_SCISSOR_BOX, scissorBox); - pRect->left = scissorBox[1]; - pRect->top = scissorBox[2]; - pRect->right = scissorBox[1] + scissorBox[3]; - pRect->bottom = scissorBox[2] + scissorBox[4]; + pRect->left = scissorBox[0]; + pRect->top = scissorBox[1]; + pRect->right = scissorBox[0] + scissorBox[2]; + pRect->bottom = scissorBox[1] + scissorBox[3]; TRACE("(%p)Returning a Scissor Rect of %ld:%ld-%ld:%ld\n", This, pRect->left, pRect->top, pRect->right, pRect->bottom); LEAVE_GL(); return WINED3D_OK;