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
6bcc5ae9
Commit
6bcc5ae9
authored
Oct 05, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pitch alignment for the pow2Size.
parent
d45c16ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
device.c
dlls/wined3d/device.c
+2
-1
No files found.
dlls/wined3d/device.c
View file @
6bcc5ae9
...
...
@@ -1053,7 +1053,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, U
if
(
WINED3DFMT_UNKNOWN
!=
Format
)
{
object
->
bytesPerPixel
=
tableEntry
->
bpp
;
object
->
pow2Size
=
(
pow2Width
*
object
->
bytesPerPixel
)
*
pow2Height
;
object
->
pow2Size
=
((
pow2Width
*
object
->
bytesPerPixel
)
+
SURFACE_ALIGNMENT
-
1
)
&
~
(
SURFACE_ALIGNMENT
-
1
);
object
->
pow2Size
*=
pow2Height
;
}
else
{
object
->
bytesPerPixel
=
0
;
object
->
pow2Size
=
0
;
...
...
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