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
e8e23114
Commit
e8e23114
authored
May 10, 2017
by
Józef Kucia
Committed by
Alexandre Julliard
May 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Fix compilation on systems that don't support nameless unions.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af54ed51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
mediastream.c
dlls/amstream/mediastream.c
+10
-7
No files found.
dlls/amstream/mediastream.c
View file @
e8e23114
...
...
@@ -18,16 +18,19 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#
include "wine/debug.h"
#
define NONAMELESSUNION
#define NONAMELESSSTRUCT
#define COBJMACROS
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "amstream_private.h"
#include "ddstream.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
amstream
);
...
...
@@ -1021,11 +1024,11 @@ static HRESULT ddrawstreamsample_create(IDirectDrawMediaStream *parent, IDirectD
desc
.
dwWidth
=
100
;
desc
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
desc
.
ddpfPixelFormat
);
desc
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
desc
.
ddpfPixelFormat
.
dwRGBBitCount
=
32
;
desc
.
ddpfPixelFormat
.
dwRBitMask
=
0xff0000
;
desc
.
ddpfPixelFormat
.
dwGBitMask
=
0x00ff00
;
desc
.
ddpfPixelFormat
.
dwBBitMask
=
0x0000ff
;
desc
.
ddpfPixelFormat
.
dwRGBAlphaBitMask
=
0
;
desc
.
ddpfPixelFormat
.
u1
.
dwRGBBitCount
=
32
;
desc
.
ddpfPixelFormat
.
u2
.
dwRBitMask
=
0xff0000
;
desc
.
ddpfPixelFormat
.
u3
.
dwGBitMask
=
0x00ff00
;
desc
.
ddpfPixelFormat
.
u4
.
dwBBitMask
=
0x0000ff
;
desc
.
ddpfPixelFormat
.
u5
.
dwRGBAlphaBitMask
=
0
;
desc
.
ddsCaps
.
dwCaps
=
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_OFFSCREENPLAIN
;
desc
.
lpSurface
=
NULL
;
...
...
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