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
256d4331
Commit
256d4331
authored
Jun 29, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Implement d3d9_device_PresentEx().
parent
035b79eb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
11 deletions
+25
-11
device.c
dlls/d3d8/device.c
+2
-1
device.c
dlls/d3d9/device.c
+15
-5
device.c
dlls/wined3d/device.c
+4
-4
swapchain.c
dlls/wined3d/swapchain.c
+3
-0
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/d3d8/device.c
View file @
256d4331
...
...
@@ -610,7 +610,8 @@ static HRESULT WINAPI d3d8_device_Present(IDirect3DDevice8 *iface, const RECT *s
iface
,
wine_dbgstr_rect
(
src_rect
),
wine_dbgstr_rect
(
dst_rect
),
dst_window_override
,
dirty_region
);
wined3d_mutex_lock
();
hr
=
wined3d_device_present
(
device
->
wined3d_device
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
);
hr
=
wined3d_device_present
(
device
->
wined3d_device
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
0
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/device.c
View file @
256d4331
...
...
@@ -584,11 +584,12 @@ static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_Present(IDirect3DDevice9Ex *
iface
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
);
wined3d_mutex_lock
();
hr
=
wined3d_device_present
(
device
->
wined3d_device
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
);
hr
=
wined3d_device_present
(
device
->
wined3d_device
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
0
);
wined3d_mutex_unlock
();
return
hr
;
}
}
static
HRESULT
WINAPI
d3d9_device_GetBackBuffer
(
IDirect3DDevice9Ex
*
iface
,
UINT
swapchain
,
UINT
backbuffer_idx
,
D3DBACKBUFFER_TYPE
backbuffer_type
,
IDirect3DSurface9
**
backbuffer
)
...
...
@@ -2818,10 +2819,19 @@ static HRESULT WINAPI d3d9_device_PresentEx(IDirect3DDevice9Ex *iface,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
)
{
FIXME
(
"iface %p, src_rect %p, dst_rect %p, dst_window_override %p, dirty_region %p, flags %#x stub!
\n
"
,
iface
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
flags
)
;
struct
d3d9_device
*
device
=
impl_from_IDirect3DDevice9Ex
(
iface
);
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p, flags %#x.
\n
"
,
iface
,
wine_dbgstr_rect
(
src_rect
),
wine_dbgstr_rect
(
dst_rect
),
dst_window_override
,
dirty_region
,
flags
);
wined3d_mutex_lock
();
hr
=
wined3d_device_present
(
device
->
wined3d_device
,
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
flags
);
wined3d_mutex_unlock
();
return
hr
;
}
static
HRESULT
WINAPI
d3d9_device_GetGPUThreadPriority
(
IDirect3DDevice9Ex
*
iface
,
INT
*
priority
)
...
...
dlls/wined3d/device.c
View file @
256d4331
...
...
@@ -3821,18 +3821,18 @@ HRESULT CDECL wined3d_device_end_scene(struct wined3d_device *device)
}
HRESULT
CDECL
wined3d_device_present
(
const
struct
wined3d_device
*
device
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
)
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
)
{
UINT
i
;
TRACE
(
"device %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p.
\n
"
,
TRACE
(
"device %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p
, flags %#x
.
\n
"
,
device
,
wine_dbgstr_rect
(
src_rect
),
wine_dbgstr_rect
(
dst_rect
),
dst_window_override
,
dirty_region
);
dst_window_override
,
dirty_region
,
flags
);
for
(
i
=
0
;
i
<
device
->
swapchain_count
;
++
i
)
{
wined3d_swapchain_present
(
device
->
swapchains
[
i
],
src_rect
,
dst_rect
,
dst_window_override
,
dirty_region
,
0
);
dst_rect
,
dst_window_override
,
dirty_region
,
flags
);
}
return
WINED3D_OK
;
...
...
dlls/wined3d/swapchain.c
View file @
256d4331
...
...
@@ -150,6 +150,9 @@ HRESULT CDECL wined3d_swapchain_present(struct wined3d_swapchain *swapchain,
swapchain
,
wine_dbgstr_rect
(
src_rect
),
wine_dbgstr_rect
(
dst_rect
),
dst_window_override
,
dirty_region
,
flags
);
if
(
flags
)
FIXME
(
"Ignoring flags %#x.
\n
"
,
flags
);
if
(
!
swapchain
->
back_buffers
)
{
WARN
(
"Swapchain doesn't have a backbuffer, returning WINED3DERR_INVALIDCALL
\n
"
);
...
...
include/wine/wined3d.h
View file @
256d4331
...
...
@@ -2181,7 +2181,7 @@ HRESULT __cdecl wined3d_device_init_gdi(struct wined3d_device *device, struct wi
HRESULT
__cdecl
wined3d_device_multiply_transform
(
struct
wined3d_device
*
device
,
enum
wined3d_transform_state
state
,
const
struct
wined3d_matrix
*
matrix
);
HRESULT
__cdecl
wined3d_device_present
(
const
struct
wined3d_device
*
device
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
);
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
);
HRESULT
__cdecl
wined3d_device_process_vertices
(
struct
wined3d_device
*
device
,
UINT
src_start_idx
,
UINT
dst_idx
,
UINT
vertex_count
,
struct
wined3d_buffer
*
dst_buffer
,
const
struct
wined3d_vertex_declaration
*
declaration
,
DWORD
flags
,
DWORD
dst_fvf
);
...
...
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