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
5864d18c
Commit
5864d18c
authored
Nov 06, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Nov 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use SURFACE_ALIGNMENT.
parent
02cd4c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
surface.c
dlls/wined3d/surface.c
+2
-2
No files found.
dlls/wined3d/surface.c
View file @
5864d18c
...
...
@@ -1842,7 +1842,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
/* Stick to the alignment for the converted surface too, makes it easier to load the surface */
outpitch
=
width
*
bpp
;
outpitch
=
(
outpitch
+
3
)
&
~
3
;
outpitch
=
(
outpitch
+
SURFACE_ALIGNMENT
-
1
)
&
~
(
SURFACE_ALIGNMENT
-
1
)
;
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
outpitch
*
height
);
if
(
!
mem
)
{
...
...
@@ -2126,7 +2126,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetFormat(IWineD3DSurface *iface, WINED3DFORM
format
==
WINED3DFMT_DXT4
||
format
==
WINED3DFMT_DXT5
)
{
This
->
resource
.
size
=
((
max
(
This
->
pow2Width
,
4
)
*
formatEntry
->
bpp
)
*
max
(
This
->
pow2Height
,
4
));
}
else
{
This
->
resource
.
size
=
((
This
->
pow2Width
*
formatEntry
->
bpp
)
+
3
)
&
~
3
;
This
->
resource
.
size
=
((
This
->
pow2Width
*
formatEntry
->
bpp
)
+
SURFACE_ALIGNMENT
-
1
)
&
~
(
SURFACE_ALIGNMENT
-
1
)
;
This
->
resource
.
size
*=
This
->
pow2Height
;
}
...
...
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