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
867c436a
Commit
867c436a
authored
Dec 05, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged _all_ lpClipper into common_surface.
Add NULL ptr check to SetClipper. Some more debug output.
parent
2d7be870
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
ddraw.c
graphics/ddraw.c
+10
-6
ddraw_private.h
graphics/ddraw_private.h
+0
-3
No files found.
graphics/ddraw.c
View file @
867c436a
...
...
@@ -1561,7 +1561,7 @@ static ULONG WINAPI Xlib_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 if
/* Free the clipper if present */
if
(
This
->
s
.
lpClipper
)
IDirectDrawClipper_Release
(
This
->
lpClipper
);
IDirectDrawClipper_Release
(
This
->
s
.
lpClipper
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
S_OK
;
...
...
@@ -1645,9 +1645,9 @@ static HRESULT WINAPI IDirectDrawSurface4Impl_SetClipper(
ICOM_THIS
(
IDirectDrawSurface4Impl
,
iface
);
TRACE
(
"(%p)->(%p)!
\n
"
,
This
,
lpClipper
);
IDirectDrawClipper_Release
(
This
->
s
.
lpClipper
);
if
(
This
->
s
.
lpClipper
)
IDirectDrawClipper_Release
(
This
->
s
.
lpClipper
);
This
->
s
.
lpClipper
=
lpClipper
;
IDirectDrawClipper_AddRef
(
lpClipper
);
/* Add the reference to it */
if
(
lpClipper
)
IDirectDrawClipper_AddRef
(
lpClipper
);
return
DD_OK
;
}
...
...
@@ -3041,15 +3041,17 @@ static HRESULT common_off_screen_CreateSurface(IDirectDraw2Impl* This,
/* No pixel format => use DirectDraw's format */
lpdsf
->
s
.
surface_desc
.
ddpfPixelFormat
=
This
->
d
.
directdraw_pixelformat
;
lpdsf
->
s
.
surface_desc
.
dwFlags
|=
DDSD_PIXELFORMAT
;
}
}
bpp
=
GET_BPP
(
lpdsf
->
s
.
surface_desc
);
}
if
(
lpdsf
->
s
.
surface_desc
.
dwFlags
&
DDSD_LPSURFACE
)
{
/* The surface was preallocated : seems that we have nothing to do :-) */
WARN
(
"Creates a surface that is already allocated : assuming this is an application bug !
\n
"
);
ERR
(
"Creates a surface that is already allocated : assuming this is an application bug !
\n
"
);
}
assert
(
bpp
);
FIXME
(
"using w=%ld, h=%ld, bpp=%d
\n
"
,
lpdsf
->
s
.
surface_desc
.
dwWidth
,
lpdsf
->
s
.
surface_desc
.
dwHeight
,
bpp
);
lpdsf
->
s
.
surface_desc
.
dwFlags
|=
DDSD_PITCH
|
DDSD_LPSURFACE
;
lpdsf
->
s
.
surface_desc
.
u1
.
lpSurface
=
...
...
@@ -4775,6 +4777,8 @@ static HRESULT WINAPI IDirectDraw2Impl_GetScanLine(LPDIRECTDRAW2 iface,
ICOM_THIS
(
IDirectDraw2Impl
,
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
lpdwScanLine
);
if
(
lpdwScanLine
)
*
lpdwScanLine
=
0
;
return
DD_OK
;
}
...
...
graphics/ddraw_private.h
View file @
867c436a
...
...
@@ -213,7 +213,6 @@ struct IDirectDrawSurface2Impl
struct
_dga_directdrawsurface
dga
;
struct
_xlib_directdrawsurface
xlib
;
}
t
;
LPDIRECTDRAWCLIPPER
lpClipper
;
};
/*****************************************************************************
...
...
@@ -230,7 +229,6 @@ struct IDirectDrawSurface3Impl
struct
_dga_directdrawsurface
dga
;
struct
_xlib_directdrawsurface
xlib
;
}
t
;
LPDIRECTDRAWCLIPPER
lpClipper
;
};
/*****************************************************************************
...
...
@@ -248,7 +246,6 @@ struct IDirectDrawSurface4Impl
struct
_dga_directdrawsurface
dga
;
struct
_xlib_directdrawsurface
xlib
;
}
t
;
LPDIRECTDRAWCLIPPER
lpClipper
;
}
;
struct
_surface_chain
{
...
...
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