Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
19f45af1
Commit
19f45af1
authored
May 07, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Copy the DIB to sysmem when PIN_SYSMEM is set.
parent
a373c353
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
surface.c
dlls/wined3d/surface.c
+13
-2
No files found.
dlls/wined3d/surface.c
View file @
19f45af1
...
...
@@ -3234,8 +3234,19 @@ HRESULT CDECL wined3d_surface_releasedc(struct wined3d_surface *surface, HDC dc)
surface
->
resource
.
map_count
--
;
surface
->
flags
&=
~
SFLAG_DCINUSE
;
if
(
surface
->
map_binding
==
WINED3D_LOCATION_USER_MEMORY
)
surface_load_location
(
surface
,
WINED3D_LOCATION_USER_MEMORY
);
if
(
surface
->
map_binding
==
WINED3D_LOCATION_USER_MEMORY
||
(
surface
->
flags
&
SFLAG_PIN_SYSMEM
&&
surface
->
map_binding
!=
WINED3D_LOCATION_DIB
))
{
/* The game Salammbo modifies the surface contents without mapping the surface between
* a GetDC/ReleaseDC operation and flipping the surface. If the DIB remains the active
* copy and is copied to the screen, this update, which draws the mouse pointer, is lost.
* Do not only copy the DIB to the map location, but also make sure the map location is
* copied back to the DIB in the next getdc call.
*
* The same consideration applies to user memory surfaces. */
surface_load_location
(
surface
,
surface
->
map_binding
);
surface_invalidate_location
(
surface
,
WINED3D_LOCATION_DIB
);
}
return
WINED3D_OK
;
}
...
...
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