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
79457d81
Commit
79457d81
authored
May 23, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize the back-buffer with the correct VTable.
parent
7e5c2c04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
15 deletions
+9
-15
dga.c
dlls/ddraw/ddraw/dga.c
+6
-8
dga2.c
dlls/ddraw/ddraw/dga2.c
+1
-5
dga_private.h
dlls/ddraw/dga_private.h
+2
-2
No files found.
dlls/ddraw/ddraw/dga.c
View file @
79457d81
...
...
@@ -60,9 +60,9 @@ static XF86VidModeModeInfo *orig_mode = NULL;
/* This function is used both by DGA and DGA2 drivers, thus the virtual function table
is not set here, but in the calling function */
HRESULT
WINAPI
DGA_IDirectDraw2Impl_CreateSurface_
no
_VT
(
HRESULT
WINAPI
DGA_IDirectDraw2Impl_CreateSurface_
with
_VT
(
LPDIRECTDRAW2
iface
,
LPDDSURFACEDESC
lpddsd
,
LPDIRECTDRAWSURFACE
*
lpdsf
,
IUnknown
*
lpunk
IUnknown
*
lpunk
,
void
*
vtable
)
{
ICOM_THIS
(
IDirectDraw2Impl
,
iface
);
IDirectDrawSurfaceImpl
*
dsurf
;
...
...
@@ -84,6 +84,8 @@ HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface_no_VT(
HEAP_ZERO_MEMORY
,
sizeof
(
dga_ds_private
)
);
ICOM_VTBL
(
dsurf
)
=
(
ICOM_VTABLE
(
IDirectDrawSurface
)
*
)
vtable
;
dspriv
=
(
dga_ds_private
*
)
dsurf
->
private
;
IDirectDraw2_AddRef
(
iface
);
...
...
@@ -148,7 +150,7 @@ HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface_no_VT(
);
IDirectDraw2_AddRef
(
iface
);
back
->
ref
=
1
;
ICOM_VTBL
(
back
)
=
(
ICOM_VTABLE
(
IDirectDrawSurface4
)
*
)
&
dga_dds4vt
;
ICOM_VTBL
(
back
)
=
(
ICOM_VTABLE
(
IDirectDrawSurface4
)
*
)
vtable
;
back
->
private
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
...
...
@@ -196,12 +198,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface(
IUnknown
*
lpunk
)
{
HRESULT
ret
;
IDirectDrawSurfaceImpl
*
dsurf
;
ret
=
DGA_IDirectDraw2Impl_CreateSurface_no_VT
(
iface
,
lpddsd
,
lpdsf
,
lpunk
);
dsurf
=
*
(
IDirectDrawSurfaceImpl
**
)
lpdsf
;
ICOM_VTBL
(
dsurf
)
=
(
ICOM_VTABLE
(
IDirectDrawSurface
)
*
)
&
dga_dds4vt
;
ret
=
DGA_IDirectDraw2Impl_CreateSurface_with_VT
(
iface
,
lpddsd
,
lpdsf
,
lpunk
,
&
dga_dds4vt
);
return
ret
;
}
...
...
dlls/ddraw/ddraw/dga2.c
View file @
79457d81
...
...
@@ -40,12 +40,8 @@ static HRESULT WINAPI DGA2_IDirectDraw2Impl_CreateSurface(
IUnknown
*
lpunk
)
{
HRESULT
ret
;
IDirectDrawSurfaceImpl
*
dsurf
;
ret
=
DGA_IDirectDraw2Impl_CreateSurface_no_VT
(
iface
,
lpddsd
,
lpdsf
,
lpunk
);
dsurf
=
*
(
IDirectDrawSurfaceImpl
**
)
lpdsf
;
ICOM_VTBL
(
dsurf
)
=
(
ICOM_VTABLE
(
IDirectDrawSurface
)
*
)
&
dga2_dds4vt
;
ret
=
DGA_IDirectDraw2Impl_CreateSurface_with_VT
(
iface
,
lpddsd
,
lpdsf
,
lpunk
,
&
dga2_dds4vt
);
return
ret
;
}
...
...
dlls/ddraw/dga_private.h
View file @
79457d81
...
...
@@ -37,8 +37,8 @@ extern HRESULT WINAPI DGA_IDirectDrawSurface4Impl_SetPalette(LPDIRECTDRAWSURFACE
extern
HRESULT
WINAPI
DGA_IDirectDrawSurface4Impl_Unlock
(
LPDIRECTDRAWSURFACE4
iface
,
LPVOID
surface
)
;
extern
HRESULT
WINAPI
DGA_IDirectDrawSurface4Impl_GetDC
(
LPDIRECTDRAWSURFACE4
iface
,
HDC
*
lphdc
);
extern
HRESULT
WINAPI
DGA_IDirectDraw2Impl_CreateSurface_
no
_VT
(
LPDIRECTDRAW2
iface
,
LPDDSURFACEDESC
lpddsd
,
LPDIRECTDRAWSURFACE
*
lpdsf
,
IUnknown
*
lpunk
)
;
extern
HRESULT
WINAPI
DGA_IDirectDraw2Impl_CreateSurface_
with
_VT
(
LPDIRECTDRAW2
iface
,
LPDDSURFACEDESC
lpddsd
,
LPDIRECTDRAWSURFACE
*
lpdsf
,
IUnknown
*
lpunk
,
void
*
vtable
)
;
extern
HRESULT
WINAPI
DGA_IDirectDraw2Impl_QueryInterface
(
LPDIRECTDRAW2
iface
,
REFIID
refiid
,
LPVOID
*
obj
)
;
extern
HRESULT
WINAPI
DGA_IDirectDraw2Impl_GetCaps
(
LPDIRECTDRAW2
iface
,
LPDDCAPS
caps1
,
LPDDCAPS
caps2
)
;
...
...
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