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
43ecaf29
Commit
43ecaf29
authored
Aug 29, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the DDRAW_PITCH_ALIGNMENT and D3D8_PITCH_ALIGNMENT constants.
parent
605136ab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
12 deletions
+6
-12
ddraw.c
dlls/ddraw/ddraw.c
+4
-8
ddraw_private.h
dlls/ddraw/ddraw_private.h
+2
-0
directx.c
dlls/wined3d/directx.c
+0
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-2
wined3d.h
include/wine/wined3d.h
+0
-1
No files found.
dlls/ddraw/ddraw.c
View file @
43ecaf29
...
...
@@ -1228,11 +1228,8 @@ static HRESULT WINAPI ddraw7_GetCaps(IDirectDraw7 *iface, DDCAPS *DriverCaps, DD
caps
.
dwSSBCKeyCaps
=
winecaps
.
ddraw_caps
.
ssb_color_key_caps
;
caps
.
dwSSBFXCaps
=
winecaps
.
ddraw_caps
.
ssb_fx_caps
;
if
(
winecaps
.
ddraw_caps
.
stride_align
)
{
caps
.
dwCaps
|=
DDCAPS_ALIGNSTRIDE
;
caps
.
dwAlignStrideAlign
=
winecaps
.
ddraw_caps
.
stride_align
;
}
caps
.
dwCaps
|=
DDCAPS_ALIGNSTRIDE
;
caps
.
dwAlignStrideAlign
=
DDRAW_STRIDE_ALIGNMENT
;
if
(
DriverCaps
)
{
...
...
@@ -5276,9 +5273,8 @@ HRESULT ddraw_init(struct ddraw *ddraw, enum wined3d_device_type device_type)
ddraw
->
flags
|=
DDRAW_NO3D
;
}
hr
=
wined3d_device_create
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
device_type
,
NULL
,
0
,
8
,
&
ddraw
->
device_parent
,
&
ddraw
->
wined3d_device
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
=
wined3d_device_create
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
device_type
,
NULL
,
0
,
DDRAW_STRIDE_ALIGNMENT
,
&
ddraw
->
device_parent
,
&
ddraw
->
wined3d_device
)))
{
WARN
(
"Failed to create a wined3d device, hr %#x.
\n
"
,
hr
);
wined3d_decref
(
ddraw
->
wined3d
);
...
...
dlls/ddraw/ddraw_private.h
View file @
43ecaf29
...
...
@@ -55,6 +55,8 @@ struct FvfToDecl
#define DDRAW_NO3D 0x00000008
#define DDRAW_SCL_DDRAW1 0x00000010
#define DDRAW_STRIDE_ALIGNMENT 8
struct
ddraw
{
/* Interfaces */
...
...
dlls/wined3d/directx.c
View file @
43ecaf29
...
...
@@ -4657,7 +4657,6 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
WINEDDSCAPS_SYSTEMMEMORY
|
WINEDDSCAPS_VIDEOMEMORY
|
WINEDDSCAPS_VISIBLE
;
caps
->
ddraw_caps
.
stride_align
=
DDRAW_PITCH_ALIGNMENT
;
if
(
!
(
wined3d
->
flags
&
WINED3D_NO3D
))
{
...
...
dlls/wined3d/wined3d_private.h
View file @
43ecaf29
...
...
@@ -1886,8 +1886,6 @@ struct wined3d_device
BYTE
fixed_function_usage_map
;
/* MAX_TEXTURES, 8 */
#define DDRAW_PITCH_ALIGNMENT 8
#define D3D8_PITCH_ALIGNMENT 4
unsigned
char
surface_alignment
;
/* Line Alignment of surfaces */
struct
wined3d_state
state
;
...
...
include/wine/wined3d.h
View file @
43ecaf29
...
...
@@ -1748,7 +1748,6 @@ struct wined3d_ddraw_caps
DWORD
ssb_color_key_caps
;
DWORD
ssb_fx_caps
;
DWORD
dds_caps
;
DWORD
stride_align
;
};
typedef
struct
_WINED3DCAPS
...
...
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