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
fa434ffa
Commit
fa434ffa
authored
Nov 22, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BltFast: Honor lPitch, Lock/Unlock surfaces (xlib needs unlock to draw).
parent
96508647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
ddraw.c
graphics/ddraw.c
+11
-4
No files found.
graphics/ddraw.c
View file @
fa434ffa
...
@@ -679,21 +679,28 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface3_Blt(
...
@@ -679,21 +679,28 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface3_Blt(
static
HRESULT
WINAPI
IDirectDrawSurface3_BltFast
(
static
HRESULT
WINAPI
IDirectDrawSurface3_BltFast
(
LPDIRECTDRAWSURFACE3
this
,
DWORD
dstx
,
DWORD
dsty
,
LPDIRECTDRAWSURFACE3
src
,
LPRECT32
rsrc
,
DWORD
trans
LPDIRECTDRAWSURFACE3
this
,
DWORD
dstx
,
DWORD
dsty
,
LPDIRECTDRAWSURFACE3
src
,
LPRECT32
rsrc
,
DWORD
trans
)
{
)
{
int
i
,
bpp
;
int
i
,
bpp
;
DDSURFACEDESC
ddesc
,
sdesc
;
if
(
TRACE_ON
(
ddraw
))
{
if
(
TRACE_ON
(
ddraw
))
{
FIXME
(
ddraw
,
"(%p)->(%ld,%ld,%p,%p,%08lx),stub!
\n
"
,
TRACE
(
ddraw
,
"(%p)->(%ld,%ld,%p,%p,%08lx)
\n
"
,
this
,
dstx
,
dsty
,
src
,
rsrc
,
trans
this
,
dstx
,
dsty
,
src
,
rsrc
,
trans
);
);
TRACE
(
ddraw
,
" trans:"
);
_dump_DDBLTFAST
(
trans
);
fprintf
(
stderr
,
"
\n
"
);
TRACE
(
ddraw
,
" trans:"
);
_dump_DDBLTFAST
(
trans
);
fprintf
(
stderr
,
"
\n
"
);
TRACE
(
ddraw
,
" srcrect: %dx%d-%dx%d
\n
"
,
rsrc
->
left
,
rsrc
->
top
,
rsrc
->
right
,
rsrc
->
bottom
);
TRACE
(
ddraw
,
" srcrect: %dx%d-%dx%d
\n
"
,
rsrc
->
left
,
rsrc
->
top
,
rsrc
->
right
,
rsrc
->
bottom
);
}
}
/* We need to lock the surfaces, or we won't get refreshes when done */
src
->
lpvtbl
->
fnLock
(
src
,
NULL
,
&
sdesc
,
0
,
0
);
this
->
lpvtbl
->
fnLock
(
this
,
NULL
,
&
ddesc
,
0
,
0
);
bpp
=
this
->
s
.
ddraw
->
d
.
depth
/
8
;
bpp
=
this
->
s
.
ddraw
->
d
.
depth
/
8
;
for
(
i
=
0
;
i
<
rsrc
->
bottom
-
rsrc
->
top
;
i
++
)
{
for
(
i
=
0
;
i
<
rsrc
->
bottom
-
rsrc
->
top
;
i
++
)
{
memcpy
(
this
->
s
.
surface
+
((
i
+
dsty
)
*
this
->
s
.
width
*
bpp
)
+
dstx
*
bpp
,
memcpy
(
ddesc
.
y
.
lpSurface
+
(
dsty
+
i
)
*
ddesc
.
lPitch
+
dstx
*
bpp
,
s
rc
->
s
.
surface
+
(
rsrc
->
top
+
i
)
*
src
->
s
.
width
*
bpp
+
rsrc
->
left
*
bpp
,
s
desc
.
y
.
lpSurface
+
(
rsrc
->
top
+
i
)
*
sdesc
.
lPitch
+
rsrc
->
left
*
bpp
,
(
rsrc
->
right
-
rsrc
->
left
)
*
bpp
(
rsrc
->
right
-
rsrc
->
left
)
*
bpp
);
);
}
}
this
->
lpvtbl
->
fnUnlock
(
this
,
ddesc
.
y
.
lpSurface
);
src
->
lpvtbl
->
fnUnlock
(
src
,
sdesc
.
y
.
lpSurface
);
return
0
;
return
0
;
}
}
...
...
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