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
b735928b
Commit
b735928b
authored
Apr 18, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a few obsolete files.
parent
c14bed35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
395 deletions
+0
-395
Makefile.in
dlls/ddraw/Makefile.in
+0
-3
dga2.c
dlls/ddraw/ddraw/dga2.c
+0
-0
dga2.h
dlls/ddraw/ddraw/dga2.h
+0
-48
xvidmode.c
dlls/ddraw/ddraw/xvidmode.c
+0
-0
xvidmode.h
dlls/ddraw/ddraw/xvidmode.h
+0
-39
dga2.c
dlls/ddraw/dsurface/dga2.c
+0
-254
dga2.h
dlls/ddraw/dsurface/dga2.h
+0
-51
No files found.
dlls/ddraw/Makefile.in
View file @
b735928b
...
...
@@ -23,15 +23,12 @@ C_SRCS = \
@OPENGLFILES@
\
convert.c
\
dclipper/main.c
\
ddraw/dga2.c
\
ddraw/hal.c
\
ddraw/main.c
\
ddraw/thunks.c
\
ddraw/user.c
\
ddraw/xvidmode.c
\
dpalette/hal.c
\
dpalette/main.c
\
dsurface/dga2.c
\
dsurface/dib.c
\
dsurface/fakezbuffer.c
\
dsurface/gamma.c
\
...
...
dlls/ddraw/ddraw/dga2.c
deleted
100644 → 0
View file @
c14bed35
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw/dga2.h
deleted
100644 → 0
View file @
c14bed35
/* Copyright 2000-2001 TransGaming Technologies, Inc. */
#ifndef WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
#define WINE_DDRAW_DDRAW_DGA2_H_INCLUDED
#include <X11/extensions/xf86dga.h>
#define XF86DGA2_DDRAW_PRIV(ddraw) \
((XF86DGA2_DirectDrawImpl*)((ddraw)->private))
#define XF86DGA2_DDRAW_PRIV_VAR(name,ddraw) \
XF86DGA2_DirectDrawImpl* name = XF86DGA2_DDRAW_PRIV(ddraw)
typedef
struct
{
XDGADevice
*
current_mode
;
DWORD
next_vofs
;
}
XF86DGA2_DirectDrawImpl_Part
;
typedef
struct
{
User_DirectDrawImpl_Part
user
;
XF86DGA2_DirectDrawImpl_Part
xf86dga2
;
}
XF86DGA2_DirectDrawImpl
;
void
XF86DGA2_DirectDraw_final_release
(
IDirectDrawImpl
*
This
);
HRESULT
XF86DGA2_DirectDraw_create_primary
(
IDirectDrawImpl
*
This
,
const
DDSURFACEDESC2
*
pDDSD
,
LPDIRECTDRAWSURFACE7
*
ppSurf
,
LPUNKNOWN
pOuter
);
HRESULT
XF86DGA2_DirectDraw_create_backbuffer
(
IDirectDrawImpl
*
This
,
const
DDSURFACEDESC2
*
pDDSD
,
LPDIRECTDRAWSURFACE7
*
ppSurf
,
LPUNKNOWN
pOuter
,
IDirectDrawSurfaceImpl
*
primary
);
HRESULT
XF86DGA2_DirectDraw_Construct
(
IDirectDrawImpl
*
This
,
BOOL
ex
);
HRESULT
XF86DGA2_DirectDraw_Create
(
const
GUID
*
pGUID
,
LPDIRECTDRAW7
*
pIface
,
IUnknown
*
pUnkOuter
,
BOOL
ex
);
HRESULT
WINAPI
XF86DGA2_DirectDraw_GetDeviceIdentifier
(
LPDIRECTDRAW7
iface
,
LPDDDEVICEIDENTIFIER2
pDDDI
,
DWORD
dwFlags
);
HRESULT
WINAPI
XF86DGA2_DirectDraw_SetDisplayMode
(
LPDIRECTDRAW7
iface
,
DWORD
dwWidth
,
DWORD
dwHeight
,
DWORD
dwBPP
,
DWORD
dwRefreshRate
,
DWORD
dwFlags
);
HRESULT
WINAPI
XF86DGA2_DirectDraw_RestoreDisplayMode
(
LPDIRECTDRAW7
iface
);
#endif
dlls/ddraw/ddraw/xvidmode.c
deleted
100644 → 0
View file @
c14bed35
This diff is collapsed.
Click to expand it.
dlls/ddraw/ddraw/xvidmode.h
deleted
100644 → 0
View file @
c14bed35
/* Copyright 2000-2001 TransGaming Technologies, Inc. */
#ifndef WINE_DDRAW_DDRAW_XVIDMODE_H_INCLUDED
#define WINE_DDRAW_DDRAW_XVIDMODE_H_INCLUDED
#include <X11/extensions/xf86vmode.h>
#define XVIDMODE_DDRAW_PRIV(ddraw) \
((XVidMode_DirectDrawImpl*)((ddraw)->private))
#define XVIDMODE_DDRAW_PRIV_VAR(name,ddraw) \
XVidMode_DirectDrawImpl* name = XVIDMODE_DDRAW_PRIV(ddraw)
typedef
struct
{
XF86VidModeModeInfo
*
original_mode
;
XF86VidModeModeInfo
*
current_mode
;
}
XVidMode_DirectDrawImpl_Part
;
typedef
struct
{
User_DirectDrawImpl_Part
user
;
XVidMode_DirectDrawImpl_Part
xvidmode
;
}
XVidMode_DirectDrawImpl
;
void
XVidMode_DirectDraw_final_release
(
IDirectDrawImpl
*
This
);
HRESULT
XVidMode_DirectDraw_Construct
(
IDirectDrawImpl
*
This
,
BOOL
ex
);
HRESULT
XVidMode_DirectDraw_Create
(
const
GUID
*
pGUID
,
LPDIRECTDRAW7
*
pIface
,
IUnknown
*
pUnkOuter
,
BOOL
ex
);
HRESULT
WINAPI
XVidMode_DirectDraw_GetDeviceIdentifier
(
LPDIRECTDRAW7
iface
,
LPDDDEVICEIDENTIFIER2
pDDDI
,
DWORD
dwFlags
);
HRESULT
WINAPI
XVidMode_DirectDraw_SetDisplayMode
(
LPDIRECTDRAW7
iface
,
DWORD
dwWidth
,
DWORD
dwHeight
,
DWORD
dwBPP
,
DWORD
dwRefreshRate
,
DWORD
dwFlags
);
HRESULT
WINAPI
XVidMode_DirectDraw_RestoreDisplayMode
(
LPDIRECTDRAW7
iface
);
#endif
dlls/ddraw/dsurface/dga2.c
deleted
100644 → 0
View file @
c14bed35
/* XF86DGA2 primary surface driver
*
* Copyright 2000 TransGaming Technologies Inc.
*/
#include "config.h"
#ifdef HAVE_LIBXXF86DGA2
#include "ts_xlib.h"
#include "ts_xf86dga2.h"
#include "x11drv.h"
#include "winerror.h"
#include <assert.h>
#include <stdlib.h>
#include "debugtools.h"
#include "ddraw_private.h"
#include "ddraw/user.h"
#include "ddraw/dga2.h"
#include "dsurface/main.h"
#include "dsurface/dib.h"
#include "dsurface/dga2.h"
DEFAULT_DEBUG_CHANNEL
(
ddraw
);
static
ICOM_VTABLE
(
IDirectDrawSurface7
)
XF86DGA2_IDirectDrawSurface7_VTable
;
HRESULT
XF86DGA2_DirectDrawSurface_Construct
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawImpl
*
pDD
,
const
DDSURFACEDESC2
*
pDDSD
)
{
XF86DGA2_PRIV_VAR
(
priv
,
This
);
XF86DGA2_DDRAW_PRIV_VAR
(
ddpriv
,
pDD
);
HRESULT
hr
;
XDGADevice
*
mode
;
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
pDD
,
pDDSD
);
if
(
!
ddpriv
->
xf86dga2
.
current_mode
)
{
/* we need a mode! */
hr
=
XF86DGA2_DirectDraw_SetDisplayMode
(
ICOM_INTERFACE
(
pDD
,
IDirectDraw7
),
pDD
->
width
,
pDD
->
height
,
pDD
->
pixelformat
.
u1
.
dwRGBBitCount
,
0
,
0
);
if
(
FAILED
(
hr
))
return
hr
;
}
/* grab framebuffer data from current_mode */
mode
=
ddpriv
->
xf86dga2
.
current_mode
;
priv
->
xf86dga2
.
fb_pitch
=
mode
->
mode
.
bytesPerScanline
;
priv
->
xf86dga2
.
fb_vofs
=
ddpriv
->
xf86dga2
.
next_vofs
;
priv
->
xf86dga2
.
fb_addr
=
mode
->
data
+
priv
->
xf86dga2
.
fb_pitch
*
priv
->
xf86dga2
.
fb_vofs
;
TRACE
(
"vofs=%ld, addr=%p
\n
"
,
priv
->
xf86dga2
.
fb_vofs
,
priv
->
xf86dga2
.
fb_addr
);
/* fill in surface_desc before we construct DIB from it */
This
->
surface_desc
=
*
pDDSD
;
This
->
surface_desc
.
lpSurface
=
priv
->
xf86dga2
.
fb_addr
;
This
->
surface_desc
.
u1
.
lPitch
=
priv
->
xf86dga2
.
fb_pitch
;
This
->
surface_desc
.
dwFlags
|=
DDSD_LPSURFACE
|
DDSD_PITCH
;
hr
=
DIB_DirectDrawSurface_Construct
(
This
,
pDD
,
&
This
->
surface_desc
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
This
->
surface_desc
.
u4
.
ddpfPixelFormat
.
dwFlags
&
DDPF_PALETTEINDEXED8
)
{
priv
->
xf86dga2
.
pal
=
TSXDGACreateColormap
(
display
,
DefaultScreen
(
display
),
mode
,
AllocAll
);
TSXDGAInstallColormap
(
display
,
DefaultScreen
(
display
),
priv
->
xf86dga2
.
pal
);
}
ddpriv
->
xf86dga2
.
next_vofs
+=
pDDSD
->
dwHeight
;
ICOM_INIT_INTERFACE
(
This
,
IDirectDrawSurface7
,
XF86DGA2_IDirectDrawSurface7_VTable
);
This
->
final_release
=
XF86DGA2_DirectDrawSurface_final_release
;
This
->
duplicate_surface
=
XF86DGA2_DirectDrawSurface_duplicate_surface
;
This
->
flip_data
=
XF86DGA2_DirectDrawSurface_flip_data
;
This
->
flip_update
=
XF86DGA2_DirectDrawSurface_flip_update
;
This
->
set_palette
=
XF86DGA2_DirectDrawSurface_set_palette
;
This
->
update_palette
=
XF86DGA2_DirectDrawSurface_update_palette
;
This
->
get_display_window
=
XF86DGA2_DirectDrawSurface_get_display_window
;
return
DD_OK
;
}
HRESULT
XF86DGA2_DirectDrawSurface_Create
(
IDirectDrawImpl
*
pDD
,
const
DDSURFACEDESC2
*
pDDSD
,
LPDIRECTDRAWSURFACE7
*
ppSurf
,
IUnknown
*
pUnkOuter
)
{
IDirectDrawSurfaceImpl
*
This
;
HRESULT
hr
;
assert
(
pUnkOuter
==
NULL
);
This
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
This
)
+
sizeof
(
XF86DGA2_DirectDrawSurfaceImpl
));
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
private
=
(
XF86DGA2_DirectDrawSurfaceImpl
*
)(
This
+
1
);
hr
=
XF86DGA2_DirectDrawSurface_Construct
(
This
,
pDD
,
pDDSD
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
This
);
else
*
ppSurf
=
ICOM_INTERFACE
(
This
,
IDirectDrawSurface7
);
return
hr
;
}
void
XF86DGA2_DirectDrawSurface_final_release
(
IDirectDrawSurfaceImpl
*
This
)
{
XF86DGA2_PRIV_VAR
(
priv
,
This
);
DIB_DirectDrawSurface_final_release
(
This
);
if
(
priv
->
xf86dga2
.
pal
)
TSXFreeColormap
(
display
,
priv
->
xf86dga2
.
pal
);
}
void
XF86DGA2_DirectDrawSurface_set_palette
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawPaletteImpl
*
pal
)
{
DIB_DirectDrawSurface_set_palette
(
This
,
pal
);
}
void
XF86DGA2_DirectDrawSurface_update_palette
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawPaletteImpl
*
pal
,
DWORD
dwStart
,
DWORD
dwCount
,
LPPALETTEENTRY
palent
)
{
XF86DGA2_PRIV_VAR
(
priv
,
This
);
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
XColor
c
;
int
n
;
c
.
flags
=
DoRed
|
DoGreen
|
DoBlue
;
c
.
pixel
=
dwStart
;
for
(
n
=
0
;
n
<
dwCount
;
n
++
,
c
.
pixel
++
)
{
c
.
red
=
palent
[
n
].
peRed
<<
8
;
c
.
green
=
palent
[
n
].
peGreen
<<
8
;
c
.
blue
=
palent
[
n
].
peBlue
<<
8
;
TSXStoreColor
(
display
,
priv
->
xf86dga2
.
pal
,
&
c
);
}
TSXFlush
(
display
);
}
}
HRESULT
XF86DGA2_DirectDrawSurface_duplicate_surface
(
IDirectDrawSurfaceImpl
*
This
,
LPDIRECTDRAWSURFACE7
*
ppDup
)
{
return
XF86DGA2_DirectDrawSurface_Create
(
This
->
ddraw_owner
,
&
This
->
surface_desc
,
ppDup
,
NULL
);
}
BOOL
XF86DGA2_DirectDrawSurface_flip_data
(
IDirectDrawSurfaceImpl
*
front
,
IDirectDrawSurfaceImpl
*
back
,
DWORD
dwFlags
)
{
XF86DGA2_PRIV_VAR
(
front_priv
,
front
);
XF86DGA2_PRIV_VAR
(
back_priv
,
back
);
{
DWORD
tmp
;
tmp
=
front_priv
->
xf86dga2
.
fb_vofs
;
front_priv
->
xf86dga2
.
fb_vofs
=
back_priv
->
xf86dga2
.
fb_vofs
;
back_priv
->
xf86dga2
.
fb_vofs
=
tmp
;
}
{
LPVOID
tmp
;
tmp
=
front_priv
->
xf86dga2
.
fb_addr
;
front_priv
->
xf86dga2
.
fb_addr
=
back_priv
->
xf86dga2
.
fb_addr
;
back_priv
->
xf86dga2
.
fb_addr
=
tmp
;
}
return
DIB_DirectDrawSurface_flip_data
(
front
,
back
,
dwFlags
);
}
void
XF86DGA2_DirectDrawSurface_flip_update
(
IDirectDrawSurfaceImpl
*
This
,
DWORD
dwFlags
)
{
XF86DGA2_PRIV_VAR
(
priv
,
This
);
/* XXX having the Flip's dwFlags would be nice here */
TSXDGASetViewport
(
display
,
DefaultScreen
(
display
),
0
,
priv
->
xf86dga2
.
fb_vofs
,
XDGAFlipImmediate
);
}
HWND
XF86DGA2_DirectDrawSurface_get_display_window
(
IDirectDrawSurfaceImpl
*
This
)
{
/* there's a potential drawable in the ddraw object's current_mode->pixmap...
* perhaps it's possible to use it for the Direct3D rendering as well? */
return
0
;
}
static
ICOM_VTABLE
(
IDirectDrawSurface7
)
XF86DGA2_IDirectDrawSurface7_VTable
=
{
Main_DirectDrawSurface_QueryInterface
,
Main_DirectDrawSurface_AddRef
,
Main_DirectDrawSurface_Release
,
Main_DirectDrawSurface_AddAttachedSurface
,
Main_DirectDrawSurface_AddOverlayDirtyRect
,
DIB_DirectDrawSurface_Blt
,
Main_DirectDrawSurface_BltBatch
,
DIB_DirectDrawSurface_BltFast
,
Main_DirectDrawSurface_DeleteAttachedSurface
,
Main_DirectDrawSurface_EnumAttachedSurfaces
,
Main_DirectDrawSurface_EnumOverlayZOrders
,
Main_DirectDrawSurface_Flip
,
Main_DirectDrawSurface_GetAttachedSurface
,
Main_DirectDrawSurface_GetBltStatus
,
Main_DirectDrawSurface_GetCaps
,
Main_DirectDrawSurface_GetClipper
,
Main_DirectDrawSurface_GetColorKey
,
Main_DirectDrawSurface_GetDC
,
Main_DirectDrawSurface_GetFlipStatus
,
Main_DirectDrawSurface_GetOverlayPosition
,
Main_DirectDrawSurface_GetPalette
,
Main_DirectDrawSurface_GetPixelFormat
,
Main_DirectDrawSurface_GetSurfaceDesc
,
Main_DirectDrawSurface_Initialize
,
Main_DirectDrawSurface_IsLost
,
Main_DirectDrawSurface_Lock
,
Main_DirectDrawSurface_ReleaseDC
,
DIB_DirectDrawSurface_Restore
,
Main_DirectDrawSurface_SetClipper
,
Main_DirectDrawSurface_SetColorKey
,
Main_DirectDrawSurface_SetOverlayPosition
,
Main_DirectDrawSurface_SetPalette
,
Main_DirectDrawSurface_Unlock
,
Main_DirectDrawSurface_UpdateOverlay
,
Main_DirectDrawSurface_UpdateOverlayDisplay
,
Main_DirectDrawSurface_UpdateOverlayZOrder
,
Main_DirectDrawSurface_GetDDInterface
,
Main_DirectDrawSurface_PageLock
,
Main_DirectDrawSurface_PageUnlock
,
DIB_DirectDrawSurface_SetSurfaceDesc
,
Main_DirectDrawSurface_SetPrivateData
,
Main_DirectDrawSurface_GetPrivateData
,
Main_DirectDrawSurface_FreePrivateData
,
Main_DirectDrawSurface_GetUniquenessValue
,
Main_DirectDrawSurface_ChangeUniquenessValue
,
Main_DirectDrawSurface_SetPriority
,
Main_DirectDrawSurface_GetPriority
,
Main_DirectDrawSurface_SetLOD
,
Main_DirectDrawSurface_GetLOD
};
#endif
/* HAVE_LIBXXF86DGA2 */
dlls/ddraw/dsurface/dga2.h
deleted
100644 → 0
View file @
c14bed35
/* Copyright 2000 TransGaming Technologies Inc. */
#ifndef DDRAW_DSURFACE_DGA2_H_INCLUDED
#define DDRAW_DSURFACE_DGA2_H_INCLUDED
#define XF86DGA2_PRIV(surf) ((XF86DGA2_DirectDrawSurfaceImpl*)((surf)->private))
#define XF86DGA2_PRIV_VAR(name,surf) \
XF86DGA2_DirectDrawSurfaceImpl* name = XF86DGA2_PRIV(surf)
struct
XF86DGA2_DirectDrawSurfaceImpl_Part
{
LPVOID
fb_addr
;
DWORD
fb_pitch
,
fb_vofs
;
Colormap
pal
;
};
typedef
struct
{
struct
DIB_DirectDrawSurfaceImpl_Part
dib
;
struct
XF86DGA2_DirectDrawSurfaceImpl_Part
xf86dga2
;
}
XF86DGA2_DirectDrawSurfaceImpl
;
HRESULT
XF86DGA2_DirectDrawSurface_Construct
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawImpl
*
pDD
,
const
DDSURFACEDESC2
*
pDDSD
);
HRESULT
XF86DGA2_DirectDrawSurface_Create
(
IDirectDrawImpl
*
pDD
,
const
DDSURFACEDESC2
*
pDDSD
,
LPDIRECTDRAWSURFACE7
*
ppSurf
,
IUnknown
*
pUnkOuter
);
void
XF86DGA2_DirectDrawSurface_final_release
(
IDirectDrawSurfaceImpl
*
This
);
void
XF86DGA2_DirectDrawSurface_set_palette
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawPaletteImpl
*
pal
);
void
XF86DGA2_DirectDrawSurface_update_palette
(
IDirectDrawSurfaceImpl
*
This
,
IDirectDrawPaletteImpl
*
pal
,
DWORD
dwStart
,
DWORD
dwCount
,
LPPALETTEENTRY
palent
);
HRESULT
XF86DGA2_DirectDrawSurface_duplicate_surface
(
IDirectDrawSurfaceImpl
*
This
,
LPDIRECTDRAWSURFACE7
*
ppDup
);
BOOL
XF86DGA2_DirectDrawSurface_flip_data
(
IDirectDrawSurfaceImpl
*
front
,
IDirectDrawSurfaceImpl
*
back
,
DWORD
dwFlags
);
void
XF86DGA2_DirectDrawSurface_flip_update
(
IDirectDrawSurfaceImpl
*
This
,
DWORD
dwFlags
);
HWND
XF86DGA2_DirectDrawSurface_get_display_window
(
IDirectDrawSurfaceImpl
*
This
);
#endif
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