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
3b7d0928
Commit
3b7d0928
authored
Apr 17, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 17, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed User_DirectDraw_GetCaps. Using Main_DirectDraw_GetCaps instead,
and the User constructor filling in the main capability bits.
parent
c33e34cd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
10 deletions
+48
-10
dga2.c
dlls/ddraw/ddraw/dga2.c
+1
-1
dga2.h
dlls/ddraw/ddraw/dga2.h
+1
-1
user.c
dlls/ddraw/ddraw/user.c
+42
-1
user.h
dlls/ddraw/ddraw/user.h
+1
-4
xvidmode.c
dlls/ddraw/ddraw/xvidmode.c
+2
-2
xvidmode.h
dlls/ddraw/ddraw/xvidmode.h
+1
-1
No files found.
dlls/ddraw/ddraw/dga2.c
View file @
3b7d0928
...
...
@@ -411,7 +411,7 @@ static ICOM_VTABLE(IDirectDraw7) XF86DGA2_DirectDraw_VTable =
User_DirectDraw_EnumDisplayModes
,
Main_DirectDraw_EnumSurfaces
,
Main_DirectDraw_FlipToGDISurface
,
User
_DirectDraw_GetCaps
,
Main
_DirectDraw_GetCaps
,
Main_DirectDraw_GetDisplayMode
,
Main_DirectDraw_GetFourCCCodes
,
Main_DirectDraw_GetGDISurface
,
...
...
dlls/ddraw/ddraw/dga2.h
View file @
3b7d0928
/* Copyright 2000 TransGaming Technologies, Inc. */
/* Copyright 2000
-2001
TransGaming Technologies, Inc. */
#ifndef WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
#define WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
...
...
dlls/ddraw/ddraw/user.c
View file @
3b7d0928
...
...
@@ -144,6 +144,45 @@ HRESULT User_DirectDraw_Construct(IDirectDrawImpl *This, BOOL ex)
ICOM_INIT_INTERFACE
(
This
,
IDirectDraw7
,
User_DirectDraw_VTable
);
/* capabilities */
#define BLIT_CAPS (DDCAPS_BLT | DDCAPS_BLTCOLORFILL | DDCAPS_BLTDEPTHFILL \
| DDCAPS_BLTSTRETCH | DDCAPS_CANBLTSYSMEM | DDCAPS_CANCLIP \
| DDCAPS_CANCLIPSTRETCHED | DDCAPS_COLORKEY \
| DDCAPS_COLORKEYHWASSIST)
#define CKEY_CAPS (DDCKEYCAPS_DESTBLT | DDCKEYCAPS_SRCBLT)
#define FX_CAPS (DDFXCAPS_BLTALPHA | DDFXCAPS_BLTMIRRORLEFTRIGHT \
| DDFXCAPS_BLTMIRRORUPDOWN | DDFXCAPS_BLTROTATION90 \
| DDFXCAPS_BLTSHRINKX | DDFXCAPS_BLTSHRINKXN \
| DDFXCAPS_BLTSHRINKY | DDFXCAPS_BLTSHRINKXN \
| DDFXCAPS_BLTSTRETCHX | DDFXCAPS_BLTSTRETCHXN \
| DDFXCAPS_BLTSTRETCHY | DDFXCAPS_BLTSTRETCHYN)
This
->
caps
.
dwCaps
|=
DDCAPS_GDI
|
DDCAPS_PALETTE
|
BLIT_CAPS
;
This
->
caps
.
dwCaps2
|=
DDCAPS2_CERTIFIED
|
DDCAPS2_NOPAGELOCKREQUIRED
|
DDCAPS2_PRIMARYGAMMA
|
DDCAPS2_WIDESURFACES
;
This
->
caps
.
dwCKeyCaps
|=
CKEY_CAPS
;
This
->
caps
.
dwFXCaps
|=
FX_CAPS
;
This
->
caps
.
dwPalCaps
|=
DDPCAPS_8BIT
|
DDPCAPS_PRIMARYSURFACE
;
This
->
caps
.
dwVidMemTotal
=
16
*
1024
*
1024
;
This
->
caps
.
dwVidMemFree
=
16
*
1024
*
1024
;
This
->
caps
.
dwSVBCaps
|=
BLIT_CAPS
;
This
->
caps
.
dwSVBCKeyCaps
|=
CKEY_CAPS
;
This
->
caps
.
dwSVBFXCaps
|=
FX_CAPS
;
This
->
caps
.
dwVSBCaps
|=
BLIT_CAPS
;
This
->
caps
.
dwVSBCKeyCaps
|=
CKEY_CAPS
;
This
->
caps
.
dwVSBFXCaps
|=
FX_CAPS
;
This
->
caps
.
dwSSBCaps
|=
BLIT_CAPS
;
This
->
caps
.
dwSSBCKeyCaps
|=
CKEY_CAPS
;
This
->
caps
.
dwSSBFXCaps
|=
FX_CAPS
;
This
->
caps
.
ddsCaps
.
dwCaps
|=
DDSCAPS_ALPHA
|
DDSCAPS_BACKBUFFER
|
DDSCAPS_FLIP
|
DDSCAPS_FRONTBUFFER
|
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_PALETTE
|
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_SYSTEMMEMORY
|
DDSCAPS_VIDEOMEMORY
|
DDSCAPS_VISIBLE
;
This
->
caps
.
ddsOldCaps
.
dwCaps
=
This
->
caps
.
ddsCaps
.
dwCaps
;
#undef BLIT_CAPS
#undef CKEY_CAPS
#undef FX_CAPS
return
S_OK
;
}
...
...
@@ -322,6 +361,7 @@ User_DirectDraw_EnumDisplayModes(LPDIRECTDRAW7 iface, DWORD dwFlags,
/* EnumSurfaces: generic */
/* FlipToGDISurface: ??? */
#if 0
HRESULT WINAPI
User_DirectDraw_GetCaps(LPDIRECTDRAW7 iface, LPDDCAPS pDriverCaps,
LPDDCAPS pHELCaps)
...
...
@@ -441,6 +481,7 @@ User_DirectDraw_GetCaps(LPDIRECTDRAW7 iface, LPDDCAPS pDriverCaps,
return
DD_OK
;
}
#endif
HRESULT
WINAPI
User_DirectDraw_GetDeviceIdentifier
(
LPDIRECTDRAW7
iface
,
...
...
@@ -508,7 +549,7 @@ static ICOM_VTABLE(IDirectDraw7) User_DirectDraw_VTable =
User_DirectDraw_EnumDisplayModes
,
Main_DirectDraw_EnumSurfaces
,
Main_DirectDraw_FlipToGDISurface
,
User
_DirectDraw_GetCaps
,
Main
_DirectDraw_GetCaps
,
Main_DirectDraw_GetDisplayMode
,
Main_DirectDraw_GetFourCCCodes
,
Main_DirectDraw_GetGDISurface
,
...
...
dlls/ddraw/ddraw/user.h
View file @
3b7d0928
/* Copyright 2000 TransGaming Technologies Inc. */
/* Copyright 2000
-2001
TransGaming Technologies Inc. */
#ifndef WINE_DDRAW_DDRAW_USER_H_INCLUDED
#define WINE_DDRAW_DDRAW_USER_H_INCLUDED
...
...
@@ -36,9 +36,6 @@ User_DirectDraw_EnumDisplayModes(LPDIRECTDRAW7 iface, DWORD dwFlags,
LPDDSURFACEDESC2
pDDSD
,
LPVOID
context
,
LPDDENUMMODESCALLBACK2
callback
);
HRESULT
WINAPI
User_DirectDraw_GetCaps
(
LPDIRECTDRAW7
iface
,
LPDDCAPS
pDriverCaps
,
LPDDCAPS
pHELCaps
);
HRESULT
WINAPI
User_DirectDraw_GetDeviceIdentifier
(
LPDIRECTDRAW7
iface
,
LPDDDEVICEIDENTIFIER2
pDDDI
,
DWORD
dwFlags
);
...
...
dlls/ddraw/ddraw/xvidmode.c
View file @
3b7d0928
/* DirectDraw driver for User-based primary surfaces
* with XF86VidMode mode switching in full-screen mode.
*
* Copyright 2000 TransGaming Technologies Inc.
* Copyright 2000
-2001
TransGaming Technologies Inc.
*/
#include "config.h"
...
...
@@ -373,7 +373,7 @@ static ICOM_VTABLE(IDirectDraw7) XVidMode_DirectDraw_VTable =
User_DirectDraw_EnumDisplayModes
,
Main_DirectDraw_EnumSurfaces
,
Main_DirectDraw_FlipToGDISurface
,
User
_DirectDraw_GetCaps
,
Main
_DirectDraw_GetCaps
,
Main_DirectDraw_GetDisplayMode
,
Main_DirectDraw_GetFourCCCodes
,
Main_DirectDraw_GetGDISurface
,
...
...
dlls/ddraw/ddraw/xvidmode.h
View file @
3b7d0928
/* Copyright 2000 TransGaming Technologies, Inc. */
/* Copyright 2000
-2001
TransGaming Technologies, Inc. */
#ifndef WINE_DDRAW_DDRAW_XVIDMODE_H_INCLUDED
#define WINE_DDRAW_DDRAW_XVIDMODE_H_INCLUDED
...
...
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