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
38abddca
Commit
38abddca
authored
Oct 27, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Only update primary_lock when we're actually locking the frontbuffer.
This fixes a regression introduced by commit
8330558e
.
parent
61550ff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
surface.c
dlls/ddraw/surface.c
+9
-6
No files found.
dlls/ddraw/surface.c
View file @
38abddca
...
@@ -972,12 +972,15 @@ static HRESULT surface_lock(IDirectDrawSurfaceImpl *This,
...
@@ -972,12 +972,15 @@ static HRESULT surface_lock(IDirectDrawSurfaceImpl *This,
}
}
}
}
if
(
Flags
&
DDLOCK_READONLY
)
if
(
This
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_FRONTBUFFER
)
memset
(
&
This
->
ddraw
->
primary_lock
,
0
,
sizeof
(
This
->
ddraw
->
primary_lock
));
{
else
if
(
Rect
)
if
(
Flags
&
DDLOCK_READONLY
)
This
->
ddraw
->
primary_lock
=
*
Rect
;
memset
(
&
This
->
ddraw
->
primary_lock
,
0
,
sizeof
(
This
->
ddraw
->
primary_lock
));
else
else
if
(
Rect
)
SetRect
(
&
This
->
ddraw
->
primary_lock
,
0
,
0
,
This
->
surface_desc
.
dwWidth
,
This
->
surface_desc
.
dwHeight
);
This
->
ddraw
->
primary_lock
=
*
Rect
;
else
SetRect
(
&
This
->
ddraw
->
primary_lock
,
0
,
0
,
This
->
surface_desc
.
dwWidth
,
This
->
surface_desc
.
dwHeight
);
}
/* Override the memory area. The pitch should be set already. Strangely windows
/* Override the memory area. The pitch should be set already. Strangely windows
* does not set the LPSURFACE flag on locked surfaces !?!.
* does not set the LPSURFACE flag on locked surfaces !?!.
...
...
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