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
399825cd
Commit
399825cd
authored
Aug 02, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Report the pitch alignment to ddraw.
parent
8ee4159e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
directx.c
dlls/wined3d/directx.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
No files found.
dlls/wined3d/directx.c
View file @
399825cd
...
...
@@ -3483,7 +3483,7 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
WINEDDSCAPS_SYSTEMMEMORY
|
WINEDDSCAPS_VIDEOMEMORY
|
WINEDDSCAPS_VISIBLE
;
pCaps
->
DirectDrawCaps
.
StrideAlign
=
0
;
/* TODO: SURFACE_ALIGNMENT */
pCaps
->
DirectDrawCaps
.
StrideAlign
=
DDRAW_PITCH_ALIGNMENT
;
/* Set D3D caps if OpenGL is available. */
if
(
Adapters
[
Adapter
].
opengl
)
{
...
...
@@ -3535,9 +3535,9 @@ static HRESULT WINAPI IWineD3DImpl_CreateDevice(IWineD3D *iface, UINT Adapter,
list_init
(
&
object
->
shaders
);
if
(
This
->
dxVersion
==
7
)
{
object
->
surface_alignment
=
8
;
object
->
surface_alignment
=
DDRAW_PITCH_ALIGNMENT
;
}
else
{
object
->
surface_alignment
=
4
;
object
->
surface_alignment
=
D3D8_PITCH_ALIGNMENT
;
}
object
->
posFixup
[
0
]
=
1
.
0
;
/* This is needed to get the x coord unmodified through a MAD */
...
...
dlls/wined3d/wined3d_private.h
View file @
399825cd
...
...
@@ -835,6 +835,8 @@ struct IWineD3DDeviceImpl
BOOL
view_ident
;
/* true iff view matrix is identity */
BOOL
untransformed
;
BOOL
vertexBlendUsed
;
/* To avoid needless setting of the blend matrices */
#define DDRAW_PITCH_ALIGNMENT 8
#define D3D8_PITCH_ALIGNMENT 4
unsigned
char
surface_alignment
;
/* Line Alignment of surfaces */
/* State block related */
...
...
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