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
1ac109e5
Commit
1ac109e5
authored
Dec 01, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the proper drawable size when clearing.
parent
fce9abd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
device.c
dlls/wined3d/device.c
+5
-2
No files found.
dlls/wined3d/device.c
View file @
1ac109e5
...
...
@@ -4789,6 +4789,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
WINED3DRECT
curRect
;
RECT
vp_rect
;
WINED3DVIEWPORT
*
vp
=
&
This
->
stateBlock
->
viewport
;
UINT
drawable_width
,
drawable_height
;
TRACE
(
"(%p) Count (%d), pRects (%p), Flags (%x), Color (0x%08x), Z (%f), Stencil (%d)
\n
"
,
This
,
Count
,
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
...
...
@@ -4826,6 +4827,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
}
}
target
->
get_drawable_size
(
target
,
&
drawable_width
,
&
drawable_height
);
/* This is for offscreen rendering as well as for multithreading, thus activate the set render target
* and not the last active one.
*/
...
...
@@ -4873,7 +4876,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
This
->
stateBlock
->
viewport
.
Height
);
}
else
{
glScissor
(
This
->
stateBlock
->
viewport
.
X
,
(
((
IWineD3DSurfaceImpl
*
)
This
->
render_targets
[
0
])
->
currentDesc
.
H
eight
-
(
drawable_h
eight
-
(
This
->
stateBlock
->
viewport
.
Y
+
This
->
stateBlock
->
viewport
.
Height
)),
This
->
stateBlock
->
viewport
.
Width
,
This
->
stateBlock
->
viewport
.
Height
);
...
...
@@ -4912,7 +4915,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
glScissor
(
curRect
.
x1
,
curRect
.
y1
,
curRect
.
x2
-
curRect
.
x1
,
curRect
.
y2
-
curRect
.
y1
);
}
else
{
glScissor
(
curRect
.
x1
,
target
->
currentDesc
.
H
eight
-
curRect
.
y2
,
glScissor
(
curRect
.
x1
,
drawable_h
eight
-
curRect
.
y2
,
curRect
.
x2
-
curRect
.
x1
,
curRect
.
y2
-
curRect
.
y1
);
}
checkGLcall
(
"glScissor"
);
...
...
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