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
67d4be03
Commit
67d4be03
authored
Jan 18, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Just pin all version 1 surfaces.
parent
d0d094de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
surface.c
dlls/ddraw/surface.c
+8
-7
No files found.
dlls/ddraw/surface.c
View file @
67d4be03
...
...
@@ -5474,15 +5474,16 @@ HRESULT ddraw_surface_init(IDirectDrawSurfaceImpl *surface, IDirectDrawImpl *ddr
desc
->
ddsCaps
.
dwCaps
|=
DDSCAPS_LOCALVIDMEM
|
DDSCAPS_VIDEOMEMORY
;
}
/* Some applications assume surfaces will always be mapped at the same
* address. Some of those also assume that this address is valid even when
* the surface isn't mapped, and that updates done this way will be
* visible on the screen. The game Nox is such an application,
* Commandos: Behind Enemy Lines is another. */
if
(
version
==
1
)
flags
|=
WINED3D_SURFACE_PIN_SYSMEM
;
if
(
desc
->
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
/* Some applications assume that the primary surface will always be
* mapped at the same address. Some of those also assume that this
* address is valid even when the surface isn't mapped, and that
* updates done this way will be visible on the screen. The game Nox
* is such an application. */
if
(
version
==
1
)
flags
|=
WINED3D_SURFACE_PIN_SYSMEM
;
usage
|=
WINED3DUSAGE_RENDERTARGET
;
desc
->
ddsCaps
.
dwCaps
|=
DDSCAPS_VISIBLE
;
}
...
...
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