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
64a5dc11
Commit
64a5dc11
authored
Jun 12, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Clear DDSD_LINEARSIZE on uncompressed surfaces.
parent
7e33bc7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
surface.c
dlls/ddraw/surface.c
+2
-1
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+3
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-1
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+9
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+9
-1
No files found.
dlls/ddraw/surface.c
View file @
64a5dc11
...
...
@@ -6127,6 +6127,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s
else
if
(
!
(
desc
->
dwFlags
&
DDSD_LPSURFACE
))
{
desc
->
dwFlags
|=
DDSD_PITCH
;
desc
->
dwFlags
&=
~
DDSD_LINEARSIZE
;
desc
->
u1
.
lPitch
=
wined3d_surface_get_pitch
(
wined3d_surface
);
}
...
...
@@ -6147,7 +6148,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s
return
hr
;
}
desc
->
dwFlags
&=
~
DDSD_LPSURFACE
;
desc
->
dwFlags
&=
~
(
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
)
;
}
wined3d_surface_incref
(
wined3d_surface
);
...
...
dlls/ddraw/tests/ddraw1.c
View file @
64a5dc11
...
...
@@ -4522,12 +4522,14 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
,
0x0f8
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
,
0
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
};
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
;
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
;
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
64a5dc11
...
...
@@ -5598,12 +5598,14 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
,
0x0f8
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
,
0
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
};
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
;
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
;
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
64a5dc11
...
...
@@ -6493,6 +6493,8 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
,
0x0f8
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
,
0
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DD_OK
,
...
...
@@ -6503,8 +6505,14 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x0fc
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x0f8
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
,
0x3f00
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0x100
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x100
},
};
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
;
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
;
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
64a5dc11
...
...
@@ -6316,6 +6316,8 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
,
0x0f8
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
,
0
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x100
,
DD_OK
,
...
...
@@ -6326,8 +6328,14 @@ static void test_create_surface_pitch(void)
DDSD_PITCH
,
0x0fc
,
0x0fc
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
,
0x0f8
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
,
0x100
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
,
0x3f00
,
DDERR_INVALIDPARAMS
,
0
,
0
,
0
},
{
DDSCAPS_SYSTEMMEMORY
,
DDSD_LPSURFACE
|
DDSD_PITCH
|
DDSD_LINEARSIZE
,
0x100
,
DD_OK
,
DDSD_PITCH
,
0x100
,
0x100
},
};
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
;
DWORD
flags_mask
=
DDSD_PITCH
|
DDSD_LPSURFACE
|
DDSD_LINEARSIZE
;
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
...
...
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