Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
def7df30
Commit
def7df30
authored
Nov 06, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: ScissorRect correction.
parent
2a14dc95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
device.c
dlls/wined3d/device.c
+12
-4
No files found.
dlls/wined3d/device.c
View file @
def7df30
...
...
@@ -4650,11 +4650,19 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetSamplerState(IWineD3DDevice *iface,
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetScissorRect
(
IWineD3DDevice
*
iface
,
CONST
RECT
*
pRect
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
ENTER_GL
();
RECT
windowRect
;
UINT
winHeight
;
/** FIXME: Windows uses a top,left origin openGL uses a bottom Right? **/
TRACE
(
"(%p)Setting new Scissor Rect to %d:%d-%d:%d
\n
"
,
This
,
pRect
->
left
,
pRect
->
top
,
pRect
->
right
,
pRect
->
bottom
);
glScissor
(
pRect
->
left
,
pRect
->
top
,
pRect
->
right
-
pRect
->
left
,
pRect
->
bottom
-
pRect
->
top
);
GetClientRect
(((
IWineD3DSwapChainImpl
*
)
This
->
swapchains
[
0
])
->
win_handle
,
&
windowRect
);
/* Warning: glScissor uses window coordinates, not viewport coordinates, so our viewport correction does not apply
* Warning2: Even in windowed mode the coords are relative to the window, not the screen
*/
winHeight
=
windowRect
.
bottom
-
windowRect
.
top
;
TRACE
(
"(%p)Setting new Scissor Rect to %d:%d-%d:%d
\n
"
,
This
,
pRect
->
left
,
pRect
->
bottom
-
winHeight
,
pRect
->
right
-
pRect
->
left
,
pRect
->
bottom
-
pRect
->
top
);
ENTER_GL
();
glScissor
(
pRect
->
left
,
winHeight
-
pRect
->
bottom
,
pRect
->
right
-
pRect
->
left
,
pRect
->
bottom
-
pRect
->
top
);
checkGLcall
(
"glScissor"
);
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