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
de1ae1eb
Commit
de1ae1eb
authored
Sep 19, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: wined3d_device_get_scissor_rect() never fails.
parent
2de9fc64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
device.c
dlls/d3d9/device.c
+2
-3
device.c
dlls/wined3d/device.c
+1
-3
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d9/device.c
View file @
de1ae1eb
...
...
@@ -1878,15 +1878,14 @@ static HRESULT WINAPI d3d9_device_SetScissorRect(IDirect3DDevice9Ex *iface, cons
static
HRESULT
WINAPI
d3d9_device_GetScissorRect
(
IDirect3DDevice9Ex
*
iface
,
RECT
*
rect
)
{
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
TRACE
(
"iface %p, rect %p.
\n
"
,
iface
,
rect
);
wined3d_mutex_lock
();
hr
=
wined3d_device_get_scissor_rect
(
device
->
wined3d_device
,
rect
);
wined3d_device_get_scissor_rect
(
device
->
wined3d_device
,
rect
);
wined3d_mutex_unlock
();
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
d3d9_device_SetSoftwareVertexProcessing
(
IDirect3DDevice9Ex
*
iface
,
BOOL
software
)
...
...
dlls/wined3d/device.c
View file @
de1ae1eb
...
...
@@ -2403,14 +2403,12 @@ void CDECL wined3d_device_set_scissor_rect(struct wined3d_device *device, const
device_invalidate_state
(
device
,
STATE_SCISSORRECT
);
}
HRESULT
CDECL
wined3d_device_get_scissor_rect
(
const
struct
wined3d_device
*
device
,
RECT
*
rect
)
void
CDECL
wined3d_device_get_scissor_rect
(
const
struct
wined3d_device
*
device
,
RECT
*
rect
)
{
TRACE
(
"device %p, rect %p.
\n
"
,
device
,
rect
);
*
rect
=
device
->
updateStateBlock
->
state
.
scissor_rect
;
TRACE
(
"Returning rect %s.
\n
"
,
wine_dbgstr_rect
(
rect
));
return
WINED3D_OK
;
}
HRESULT
CDECL
wined3d_device_set_vertex_declaration
(
struct
wined3d_device
*
device
,
...
...
include/wine/wined3d.h
View file @
de1ae1eb
...
...
@@ -2147,7 +2147,7 @@ HRESULT __cdecl wined3d_device_get_render_target(const struct wined3d_device *de
UINT
render_target_idx
,
struct
wined3d_surface
**
render_target
);
DWORD
__cdecl
wined3d_device_get_sampler_state
(
const
struct
wined3d_device
*
device
,
UINT
sampler_idx
,
enum
wined3d_sampler_state
state
);
HRESULT
__cdecl
wined3d_device_get_scissor_rect
(
const
struct
wined3d_device
*
device
,
RECT
*
rect
);
void
__cdecl
wined3d_device_get_scissor_rect
(
const
struct
wined3d_device
*
device
,
RECT
*
rect
);
BOOL
__cdecl
wined3d_device_get_software_vertex_processing
(
const
struct
wined3d_device
*
device
);
HRESULT
__cdecl
wined3d_device_get_stream_source
(
const
struct
wined3d_device
*
device
,
UINT
stream_idx
,
struct
wined3d_buffer
**
buffer
,
UINT
*
offset
,
UINT
*
stride
);
...
...
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