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
3d33887c
Commit
3d33887c
authored
Jan 06, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DSWAPEFFECT typedef.
parent
45f6def7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
factory.c
dlls/dxgi/factory.c
+1
-1
surface.c
dlls/wined3d/surface.c
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+4
-4
wined3d.h
include/wine/wined3d.h
+7
-8
No files found.
dlls/ddraw/ddraw.c
View file @
3d33887c
...
@@ -685,7 +685,7 @@ static HRESULT ddraw_create_swapchain(IDirectDrawImpl *ddraw, HWND window, BOOL
...
@@ -685,7 +685,7 @@ static HRESULT ddraw_create_swapchain(IDirectDrawImpl *ddraw, HWND window, BOOL
swapchain_desc
.
backbuffer_width
=
mode
.
width
;
swapchain_desc
.
backbuffer_width
=
mode
.
width
;
swapchain_desc
.
backbuffer_height
=
mode
.
height
;
swapchain_desc
.
backbuffer_height
=
mode
.
height
;
swapchain_desc
.
backbuffer_format
=
mode
.
format_id
;
swapchain_desc
.
backbuffer_format
=
mode
.
format_id
;
swapchain_desc
.
swap_effect
=
WINED3D
SWAP
EFFECT_COPY
;
swapchain_desc
.
swap_effect
=
WINED3D
_SWAP_
EFFECT_COPY
;
swapchain_desc
.
device_window
=
window
;
swapchain_desc
.
device_window
=
window
;
swapchain_desc
.
windowed
=
windowed
;
swapchain_desc
.
windowed
=
windowed
;
...
...
dlls/dxgi/factory.c
View file @
3d33887c
...
@@ -212,7 +212,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IWineDXGIFactory *
...
@@ -212,7 +212,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IWineDXGIFactory *
wined3d_desc
.
multisample_type
=
WINED3DMULTISAMPLE_NONE
;
wined3d_desc
.
multisample_type
=
WINED3DMULTISAMPLE_NONE
;
wined3d_desc
.
multisample_quality
=
0
;
wined3d_desc
.
multisample_quality
=
0
;
}
}
wined3d_desc
.
swap_effect
=
WINED3D
SWAP
EFFECT_DISCARD
;
wined3d_desc
.
swap_effect
=
WINED3D
_SWAP_
EFFECT_DISCARD
;
wined3d_desc
.
device_window
=
desc
->
OutputWindow
;
wined3d_desc
.
device_window
=
desc
->
OutputWindow
;
wined3d_desc
.
windowed
=
desc
->
Windowed
;
wined3d_desc
.
windowed
=
desc
->
Windowed
;
wined3d_desc
.
enable_auto_depth_stencil
=
FALSE
;
wined3d_desc
.
enable_auto_depth_stencil
=
FALSE
;
...
...
dlls/wined3d/surface.c
View file @
3d33887c
...
@@ -1689,13 +1689,13 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
...
@@ -1689,13 +1689,13 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
&&
dst_surface
==
dst_swapchain
->
front_buffer
&&
dst_surface
==
dst_swapchain
->
front_buffer
&&
src_surface
==
dst_swapchain
->
back_buffers
[
0
])
&&
src_surface
==
dst_swapchain
->
back_buffers
[
0
])
{
{
WINED3DSWAPEFFECT
swap_effect
=
dst_swapchain
->
desc
.
swap_effect
;
enum
wined3d_swap_effect
swap_effect
=
dst_swapchain
->
desc
.
swap_effect
;
TRACE
(
"Using present for backbuffer -> frontbuffer blit.
\n
"
);
TRACE
(
"Using present for backbuffer -> frontbuffer blit.
\n
"
);
/* Set the swap effect to COPY, we don't want the backbuffer
/* Set the swap effect to COPY, we don't want the backbuffer
* to become undefined. */
* to become undefined. */
dst_swapchain
->
desc
.
swap_effect
=
WINED3D
SWAP
EFFECT_COPY
;
dst_swapchain
->
desc
.
swap_effect
=
WINED3D
_SWAP_
EFFECT_COPY
;
wined3d_swapchain_present
(
dst_swapchain
,
NULL
,
NULL
,
dst_swapchain
->
win_handle
,
NULL
,
0
);
wined3d_swapchain_present
(
dst_swapchain
,
NULL
,
NULL
,
dst_swapchain
->
win_handle
,
NULL
,
0
);
dst_swapchain
->
desc
.
swap_effect
=
swap_effect
;
dst_swapchain
->
desc
.
swap_effect
=
swap_effect
;
...
...
dlls/wined3d/swapchain.c
View file @
3d33887c
...
@@ -546,8 +546,8 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
...
@@ -546,8 +546,8 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
*
*
* The DISCARD swap effect is ok as well since any backbuffer content is allowed after
* The DISCARD swap effect is ok as well since any backbuffer content is allowed after
* the swap. */
* the swap. */
if
(
swapchain
->
desc
.
swap_effect
==
WINED3D
SWAP
EFFECT_FLIP
)
if
(
swapchain
->
desc
.
swap_effect
==
WINED3D
_SWAP_
EFFECT_FLIP
)
FIXME
(
"Render-to-fbo with WINED3D
SWAP
EFFECT_FLIP
\n
"
);
FIXME
(
"Render-to-fbo with WINED3D
_SWAP_
EFFECT_FLIP
\n
"
);
swapchain_blit
(
swapchain
,
context
,
&
src_rect
,
&
dst_rect
);
swapchain_blit
(
swapchain
,
context
,
&
src_rect
,
&
dst_rect
);
}
}
...
@@ -588,7 +588,7 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
...
@@ -588,7 +588,7 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
* bug shows up much more than it does on Windows, and the players see single pixels
* bug shows up much more than it does on Windows, and the players see single pixels
* with wrong colors.
* with wrong colors.
* (The Max Payne bug has been confirmed on Windows with the debug runtime) */
* (The Max Payne bug has been confirmed on Windows with the debug runtime) */
if
(
FALSE
&&
swapchain
->
desc
.
swap_effect
==
WINED3D
SWAP
EFFECT_DISCARD
)
if
(
FALSE
&&
swapchain
->
desc
.
swap_effect
==
WINED3D
_SWAP_
EFFECT_DISCARD
)
{
{
static
const
struct
wined3d_color
cyan
=
{
0
.
0
f
,
1
.
0
f
,
1
.
0
f
,
1
.
0
f
};
static
const
struct
wined3d_color
cyan
=
{
0
.
0
f
,
1
.
0
f
,
1
.
0
f
,
1
.
0
f
};
...
@@ -632,7 +632,7 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
...
@@ -632,7 +632,7 @@ static HRESULT swapchain_gl_present(struct wined3d_swapchain *swapchain, const R
* If the swapeffect is COPY, the content remains the same. If it is FLIP however,
* If the swapeffect is COPY, the content remains the same. If it is FLIP however,
* the texture / sysmem copy needs to be reloaded from the drawable
* the texture / sysmem copy needs to be reloaded from the drawable
*/
*/
if
(
swapchain
->
desc
.
swap_effect
==
WINED3D
SWAP
EFFECT_FLIP
)
if
(
swapchain
->
desc
.
swap_effect
==
WINED3D
_SWAP_
EFFECT_FLIP
)
surface_modify_location
(
swapchain
->
back_buffers
[
0
],
swapchain
->
back_buffers
[
0
]
->
draw_binding
,
TRUE
);
surface_modify_location
(
swapchain
->
back_buffers
[
0
],
swapchain
->
back_buffers
[
0
]
->
draw_binding
,
TRUE
);
}
}
...
...
include/wine/wined3d.h
View file @
3d33887c
...
@@ -501,14 +501,13 @@ enum wined3d_backbuffer_type
...
@@ -501,14 +501,13 @@ enum wined3d_backbuffer_type
WINED3D_BACKBUFFER_TYPE_RIGHT
=
2
,
WINED3D_BACKBUFFER_TYPE_RIGHT
=
2
,
};
};
typedef
enum
_WINED3DSWAPEFFECT
enum
wined3d_swap_effect
{
{
WINED3DSWAPEFFECT_DISCARD
=
1
,
WINED3D_SWAP_EFFECT_DISCARD
=
1
,
WINED3DSWAPEFFECT_FLIP
=
2
,
WINED3D_SWAP_EFFECT_FLIP
=
2
,
WINED3DSWAPEFFECT_COPY
=
3
,
WINED3D_SWAP_EFFECT_COPY
=
3
,
WINED3DSWAPEFFECT_COPY_VSYNC
=
4
,
WINED3D_SWAP_EFFECT_COPY_VSYNC
=
4
,
WINED3DSWAPEFFECT_FORCE_DWORD
=
0xffffffff
};
}
WINED3DSWAPEFFECT
;
typedef
enum
_WINED3DSAMPLERSTATETYPE
typedef
enum
_WINED3DSAMPLERSTATETYPE
{
{
...
@@ -1629,7 +1628,7 @@ struct wined3d_swapchain_desc
...
@@ -1629,7 +1628,7 @@ struct wined3d_swapchain_desc
UINT
backbuffer_count
;
UINT
backbuffer_count
;
WINED3DMULTISAMPLE_TYPE
multisample_type
;
WINED3DMULTISAMPLE_TYPE
multisample_type
;
DWORD
multisample_quality
;
DWORD
multisample_quality
;
WINED3DSWAPEFFECT
swap_effect
;
enum
wined3d_swap_effect
swap_effect
;
HWND
device_window
;
HWND
device_window
;
BOOL
windowed
;
BOOL
windowed
;
BOOL
enable_auto_depth_stencil
;
BOOL
enable_auto_depth_stencil
;
...
...
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