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
fcb49934
Commit
fcb49934
authored
Nov 30, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Retrieve the height properly when setting the viewport.
parent
8689fe32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
state.c
dlls/wined3d/state.c
+7
-1
No files found.
dlls/wined3d/state.c
View file @
fcb49934
...
...
@@ -3525,6 +3525,9 @@ static void vertexdeclaration(DWORD state, IWineD3DStateBlockImpl *stateblock, W
}
static
void
viewport
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
UINT
width
,
height
;
IWineD3DSurfaceImpl
*
target
;
glDepthRange
(
stateblock
->
viewport
.
MinZ
,
stateblock
->
viewport
.
MaxZ
);
checkGLcall
(
"glDepthRange"
);
/* Note: GL requires lower left, DirectX supplies upper left. This is reversed when using offscreen rendering
...
...
@@ -3534,8 +3537,11 @@ static void viewport(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCon
stateblock
->
viewport
.
Y
,
stateblock
->
viewport
.
Width
,
stateblock
->
viewport
.
Height
);
}
else
{
target
=
(
IWineD3DSurfaceImpl
*
)
stateblock
->
wineD3DDevice
->
render_targets
[
0
];
target
->
get_drawable_size
(
target
,
&
width
,
&
height
);
glViewport
(
stateblock
->
viewport
.
X
,
(
((
IWineD3DSurfaceImpl
*
)
stateblock
->
wineD3DDevice
->
render_targets
[
0
])
->
currentDesc
.
H
eight
-
(
stateblock
->
viewport
.
Y
+
stateblock
->
viewport
.
Height
)),
(
h
eight
-
(
stateblock
->
viewport
.
Y
+
stateblock
->
viewport
.
Height
)),
stateblock
->
viewport
.
Width
,
stateblock
->
viewport
.
Height
);
}
...
...
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