Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
edaac6f6
Commit
edaac6f6
authored
Jun 16, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: GetScissorRect should use zero-based scissorBox (Coverity).
parent
26c2953e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/wined3d/device.c
+4
-4
No files found.
dlls/wined3d/device.c
View file @
edaac6f6
...
...
@@ -4456,10 +4456,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetScissorRect(IWineD3DDevice *iface, R
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment