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
ec2f9615
Commit
ec2f9615
authored
May 14, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure the viewport is from the GL (bottom left) not the DirectX
(top left).
parent
e1147baa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
device.c
dlls/d3d8/device.c
+3
-2
No files found.
dlls/d3d8/device.c
View file @
ec2f9615
...
...
@@ -2331,8 +2331,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetViewport(LPDIRECT3DDEVICE8 iface, CONST
glDepthRange
(
pViewport
->
MinZ
,
pViewport
->
MaxZ
);
checkGLcall
(
"glDepthRange"
);
/* Fixme? Note GL requires lower left, DirectX supplies upper left */
glViewport
(
pViewport
->
X
,
pViewport
->
Y
,
pViewport
->
Width
,
pViewport
->
Height
);
/* Note: GL requires lower left, DirectX supplies upper left */
glViewport
(
pViewport
->
X
,
(
This
->
PresentParms
.
BackBufferHeight
-
(
pViewport
->
Y
+
pViewport
->
Height
)),
pViewport
->
Width
,
pViewport
->
Height
);
checkGLcall
(
"glViewport"
);
...
...
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